Expand description
With the otlp feature, provides tracing layers for OpenTelemetry that export spans, logs,
and metrics to an OTLP endpoint.
This module simplifies the integration of OpenTelemetry with OTLP export in Rust
applications. It allows for easily capturing and exporting distributed traces, logs,
and metrics to compatible backends like Jaeger, Zipkin, or any other
OpenTelemetry-compatible system.
Structs§
- Otlp
Config - Configuration for OTLP trace export.
- Otlp
Logs Config - Configuration for OTLP logs export.
- SdkTracer
Provider - Creator and registry of named [
SdkTracer] instances.
Enums§
- Otlp
Protocol - OTLP transport protocol type
Functions§
- log_
layer - Creates a tracing layer that exports logs to an OTLP endpoint.
- span_
layer - Creates a tracing [
OpenTelemetryLayer] that exports spans to an OTLP endpoint. - span_
layer_ with_ provider - Creates an OTLP span layer and returns its provider for explicit flush and shutdown.