Skip to main content

Module tracing

Module tracing 

Source
Expand description

Distributed tracing with OpenTelemetry.

This module provides trace provider initialization, span instrumentation, and helpers for distributed tracing.

Structs§

BatchConfiguration
Batch configuration for span export.
SpanBuilder
Span builder helper for creating instrumented spans.
TraceConfig
Trace provider configuration.

Enums§

OtlpProtocol
OTLP protocol type.
SamplingStrategy
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.