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.
Bind a span as the target's context or propagate the current one.
Any object to which a context need to be set
Starts a new Span. Start the span without setting it as the current span in this tracer's context.
The name of the span
Span The newly created span
Executes the function given by fn within the context provided by Span.
This is a convenience method for creating spans attached to the tracer's context. Applications that need more control over the span lifetime should use Tracer.startSpan instead.
The span that provides the context
The function to be executed inside the provided context