Expand description
Distributed tracing with OpenTelemetry.
This module provides trace provider initialization, span instrumentation, and helpers for distributed tracing.
Structs§
- Batch
Configuration - Batch configuration for span export.
- Span
Builder - Span builder helper for creating instrumented spans.
- Trace
Config - Trace provider configuration.
Enums§
- Otlp
Protocol - OTLP protocol type.
- Sampling
Strategy - Sampling strategy for traces.
Functions§
- init_
tracer_ provider - Initializes the global trace provider with OTLP exporter.
- record_
exception - Records an exception on a span.
- shutdown_
tracer_ provider - Shuts down the global trace provider and flushes all pending spans.