opentelemetry-rust
Installation
SKILL.md
OpenTelemetry Rust
Use these conventions for Rust services instrumented with open-telemetry/opentelemetry-rust.
Source Baseline
- Prefer released docs from
docs.rs, crates.io, and the matching GitHub release over older examples. - Current core crate baseline checked for this skill:
opentelemetry 0.32.0,opentelemetry_sdk 0.32.0,opentelemetry-otlp 0.32.0. - Current companion crate lag checked for this skill:
opentelemetry-stdout 0.31.0,opentelemetry-appender-tracing 0.31.1. Do not mix those0.31companion crates with a0.32SDK unless their compatibility has been verified in the target project. - Current MSRV on the 0.32 crate pages is
1.75.0. - OpenTelemetry creates, manages, and exports telemetry. It is not a storage or visualization backend.
- Library crates should normally depend on
opentelemetryonly. Applications addopentelemetry_sdkand exporter crates. - The
opentelemetrycrate is the API/facade and includes no-op behavior until an SDK provider is installed. - The SDK builds providers and processors; exporters such as
opentelemetry-otlporopentelemetry-stdoutsend telemetry somewhere.
Cargo
When using only core/SDK/OTLP, prefer the current 0.32 family: