| Package | Description |
|---|---|
| org.apache.pulsar.structuredeventlog | |
| org.apache.pulsar.structuredeventlog.slf4j |
| Modifier and Type | Method and Description |
|---|---|
Event |
Event.atError()
Log this event at the error level.
|
Event |
Event.atInfo()
Log this event at the info level (the default).
|
Event |
Event.attr(String key,
Object value)
Add an attribute for the event.
|
Event |
Event.attr(String key,
Supplier<String> value)
Add an attribute for the event using a supplier.
|
Event |
Event.atWarn()
Log this event at the warn level.
|
Event |
Event.exception(Throwable t)
Attach an exception to the event.
|
Event |
Event.newChildEvent()
Create a new child event.
|
Event |
StructuredEventLog.newRootEvent()
Create a new root event.
|
Event |
Event.parentId(String parentId)
Set the parent ID of the event.
|
Event |
Event.resource(String key,
Object value)
Add a resource for the event.
|
Event |
Event.resource(String key,
Supplier<String> value)
Add a resource for the event using a supplier.
|
Event |
Event.resources(EventResources attrs)
Add resources for the event from an EventResources object.
|
Event |
Event.sampled(Object samplingKey,
int duration,
TimeUnit unit)
Mark this event as sampled.
|
Event |
Event.timed()
Mark this event as timed.
|
Event |
Event.traceId(String traceId)
Set the trace ID of the event.
|
Event |
StructuredEventLog.unstash()
Retrieves an event from the call stack.
|
| Modifier and Type | Method and Description |
|---|---|
Event |
Slf4jStructuredEventLog.newRootEvent() |
Event |
Slf4jStructuredEventLog.unstash() |
Copyright © 2017–2021 Apache Software Foundation. All rights reserved.