Gets the span from the current context, if one exists.
Returns a Tracer, creating one if one with the given name and version if one has not already created.
The name of the tracer or instrumentation library.
Optionalversion: stringThe version of the tracer or instrumentation library.
Optionaloptions: IOTelTracerOptionsThe options of the tracer or instrumentation library.
Tracer A Tracer with the given name and version
Returns true if this IDistributedTraceContext is valid.
true if this IDistributedTraceContext is valid.
Set or clear the current active span.
The span to set as the active span, or null/undefined to clear the active span.
An ISpanScope instance returned by the host, or void if there is no defined host.
Wrap the given IDistributedTraceContext in a new non-recording IReadableSpan
The IDistributedTraceContext to be wrapped
a new non-recording IReadableSpan with the provided context
ITraceApi provides an interface definition which is simular to the OpenTelemetry TraceAPI