Expand description
OpenTelemetry tracing layer with zero overhead when disabled.
This module provides OpenTelemetry distributed tracing support that can be compiled into production builds but only activated at runtime when an endpoint is configured.
§Transport
Uses HTTP transport with a blocking reqwest client. This works without an async runtime context because:
- The BatchSpanProcessor spawns its own dedicated background thread
- The reqwest-blocking-client handles HTTP exports synchronously
This is important because Zebra’s tracing component initializes before the Tokio runtime starts.
Functions§
- layer
- Creates an OpenTelemetry layer if an endpoint is configured.
Type Aliases§
- Otel
Error - Error type for OpenTelemetry layer initialization.