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(java.lang.String key,
java.lang.Object value) |
Add an attribute for the event.
|
Event |
Event.attr(java.lang.String key,
java.util.function.Supplier<java.lang.String> value) |
Add an attribute for the event using a supplier.
|
Event |
Event.atWarn() |
Log this event at the warn level.
|
Event |
Event.exception(java.lang.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(java.lang.String parentId) |
Set the parent ID of the event.
|
Event |
Event.resource(java.lang.String key,
java.lang.Object value) |
Add a resource for the event.
|
Event |
Event.resource(java.lang.String key,
java.util.function.Supplier<java.lang.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(java.lang.Object samplingKey,
int duration,
java.util.concurrent.TimeUnit unit) |
Mark this event as sampled.
|
Event |
Event.timed() |
Mark this event as timed.
|
Event |
Event.traceId(java.lang.String traceId) |
Set the trace ID of the event.
|
Event |
StructuredEventLog.unstash() |
Retrieves an event from the call stack.
|