Expand description
OpenTelemetry OTLP tracer — init once at launch, read globally.
Call init_tracer from ArclyObservabilityPlugin::on_init.
Call opentelemetry::global::shutdown_tracer_provider() in on_shutdown
to flush any buffered spans before the process exits.
Structs§
- Otel
Config - Configuration for the OTLP span exporter.
Functions§
- init_
tracer - Initialise the global OpenTelemetry tracer provider with a batch OTLP
gRPC exporter. Safe to call once — subsequent calls on the same process
are no-ops because
set_tracer_provideris idempotent on the global. - parent_
context_ from - Build an OpenTelemetry
Contextthat represents the parent of the span about to be created for this request.