Expand description
OpenTelemetry tracing initialization utilities
This module sets up OpenTelemetry tracing and exports spans via OTLP
(gRPC or HTTP) to collectors such as Jaeger, Uptrace, or the OTel Collector.
Functionsยง
- init_
tracing - Initialize OpenTelemetry tracing from configuration and return a layer
to be attached to
tracing_subscriber. - otel_
connectivity_ probe - Build a tiny, separate OTLP pipeline and export a single span to verify connectivity.
This does not depend on
tracing_subscriber; it uses SDK directly. - shutdown_
tracing - Gracefully shut down OpenTelemetry tracing.
In opentelemetry 0.31 there is no global
shutdown_tracer_provider(). Keep a handle toSdkTracerProviderin your app state and callshutdown()during graceful shutdown. This function remains a no-op for compatibility.