The configuration object that contains all OpenTelemetry-specific settings. This includes tracing configuration, error handlers, and other OpenTelemetry options.
OptionalforceForces the tracer provider to flush any buffered data.
A promise that resolves when the flush is complete.
The current ITraceHost instance for this IOTelApi instance, this is effectively the OpenTelemetry ContextAPI instance without the static methods.
OptionalshutdownShuts down the tracer provider and releases any resources.
A promise that resolves when the shutdown is complete.
The current ITraceApi instance for this IOTelApi instance, this is effectively the OpenTelemetry TraceAPI instance without the static methods.
The current ITraceApi instance
Returns a Tracer, creating one if one with the given name and version is not already created. This may return
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
The main OpenTelemetry API interface that provides access to all OpenTelemetry functionality. This interface extends the IOTelTracerProvider and serves as the entry point for OpenTelemetry operations.
Example
Since
3.4.0