Completely clear the trace stack.
Turn trace recording off.
Turn trace recording on.
Get the current trace identifier.
Get the current identifier, if it exists.
Returns true if tracing is enabled with a good tracer pushed and the current trace is sampled
true if the current trace id is terminal
Create a derivative TraceId.
Push the given tracer.
Push the given tracer, create a derivative TraceId and set it to be the current trace id.
the tracer to be pushed
true if the next traceId is a terminal id. Future attempts to set nextId will be ignored.
Record a raw Record.
Set the current trace id Should be used with Trace.
the TraceId to set as the current trace id
true if traceId is a terminal id. Future calls to set() after a terminal id is set will not set the traceId
Time an operation and add an annotation with that duration on it
The message describing the operation
operation to perform
return value of the operation
Runs the function f and logs that duration until the future is satisfied with the given name.
Convenience method for event loops in services.
the current list of tracers
f and then unwind the stack to the starting point.