Optional ReadonlyotelThe underlying OTel TracerProvider; undefined for noop/custom hosts (instrumentations then no-op).
OptionalactivateOptionalactiveReports the identifiers of the span the OTel context currently holds
active, or undefined when nothing is active.
This is the read that lets a signal emitted OUTSIDE a withSpan call — a
log record, above all — name the trace it belongs to (X34-2). It cannot be
answered from ITelemetryService alone, which hands its span only to its
own callback, so the host is where it lives.
Optional, and paired with activate: a host with no registered
context manager never has an active span, so it omits this member rather
than answering undefined forever. Omitted means "this host cannot see";
undefined from an implemented member means "nothing is running".
The active span's identifiers, or undefined
Extracts a context from incoming headers (for traceparent propagation).
Forces flush of pending spans.
Injects a context into outgoing headers.
Shuts down the provider and flushes pending spans.
Starts a new span.
root: true starts a parentless span, ignoring both parentContext and
the active span (OTel's own SpanOptions.root).
Optionaloptions: {
The host seam returned by loadOtelTracerProvider.
Consumers (the plugin factory, tests) can supply a pre-built host via
tracerProviderFactoryto bypass the lazy OTel import.Since
0.2.0