Expand description
OpenTelemetry tracing initialization utilities
This gear sets up OpenTelemetry tracing and exports spans via OTLP
(gRPC or HTTP) to collectors such as Jaeger, Uptrace, or the OTel Collector.
Functionsยง
- init_
metrics_ provider - Build a [
SdkMeterProvider] from the resolved metrics exporter settings and register it as the global meter provider. - 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_
metrics - Gracefully shut down OpenTelemetry metrics, exporting the final interval.
- shutdown_
tracing - Gracefully shut down OpenTelemetry tracing, flushing the batch processor.