Get the active status from tracer instance
A configuration object for trace parameters
Get and set the currentRootSpan to tracer instance
Get the eventListeners from tracer instance
A configuration for starting the tracer
A propagation instance
A sampler that will decide if the span will be sampled or not
Bind a span as the target's scope or propagate the current one.
Any object to which a scope need to be set
Clear the currentRootSpan from tracer instance
Returns the BinaryFormat interface which can serialize/deserialize Spans.
If no tracer implementation is provided, this defaults to the W3C Trace Context binary format (BinaryFormat). For more details see W3C Trace Context binary protocol.
Returns the current Span from the current context if available.
If there is no Span associated with the current context, null is returned.
Span The currently active Span
Returns the HttpTextFormat interface which can inject/extract Spans.
If no tracer implementation is provided, this defaults to the W3C Trace Context HTTP text format ({@link HttpTraceContext}). For more details see W3C Trace Context.
Happens when a span is ended
Happens when a span is started
Send a pre-populated span object to the exporter. Sampling and recording decisions as well as other collection optimizations are the responsibility of a caller.
Span Data to be reported to all exporters.
Register a OnEndSpanEventListener on the tracer instance
An OnEndSpanEventListener instance
Sets the current root span.
Start a tracer instance
Configuration for tracer instace
A tracer instance started
Start a new Span instance to the currentRootSpan
The new Span instance started
Start a new RootSpan to currentRootSpan
Options for tracer instance
Callback function
The callback return
Starts a new Span.
The name of the span
Span The newly created span
Stop the tracer instance
Unregisters an end span event listener.
The listener to unregister.
Executes the function given by fn within the context provided by Span
The span that provides the context
The function to be executed inside the provided context
Binds the trace context to the given event emitter. This is necessary in order to create child spans correctly in event handlers.
An event emitter whose handlers should have the trace context binded to them.
Generated using TypeDoc
Interface for Tracer Tracer provides an interface for creating Spans and propagating context in-process.
Users may choose to use manual or automatic Context propagation. Because of that this class offers APIs to facilitate both usages.