Crate features / opentelemetry-otlp
Feature flags · opentelemetry-otlp 0.33.1 · from crates.io 2026-10-24
opentelemetry-otlp features: what each one does, and the line to copy
Short answeropentelemetry-otlp 0.33.1 has 21 features. By default it turns on http-proto, reqwest-blocking-client, trace, metrics, logs, internal-logs; add default-features = false to start from nothing. It needs Rust 1.75.0 or newer.
Pick features
Every feature
| Feature | In default | Turns on |
|---|---|---|
grpc-tonic | tonic, tonic-types, prost, http, tokio, opentelemetry-proto/gen-tonic | |
gzip-http | flate2 | |
gzip-tonic | tonic/gzip | |
http-json | serde_json, prost, opentelemetry-http, opentelemetry-proto/gen-tonic-messages, opentelemetry-proto/with-serde, http, httpdate, trace, metrics | |
http-proto | yes | prost, opentelemetry-http, opentelemetry-proto/gen-tonic-messages, http, httpdate, trace, metrics |
hyper-client | opentelemetry-http/hyper, tokio | |
integration-testing | tonic, prost, tokio/full, trace, logs | |
internal-logs | yes | opentelemetry_sdk/internal-logs, opentelemetry/internal-logs |
logs | yes | opentelemetry/logs, opentelemetry_sdk/logs, opentelemetry-proto/logs |
metrics | yes | opentelemetry/metrics, opentelemetry_sdk/metrics, opentelemetry-proto/metrics |
reqwest-blocking-client | yes | reqwest/blocking, opentelemetry-http/reqwest-blocking |
reqwest-client | reqwest, opentelemetry-http/reqwest, tokio | |
reqwest-rustls | reqwest, opentelemetry-http/reqwest-rustls | |
tls-aws-lc | tonic/tls-aws-lc | |
tls-provider-agnostic | tonic/_tls-any | |
tls-ring | tonic/tls-ring | |
tls-roots | tonic/tls-native-roots | |
tls-webpki-roots | tonic/tls-webpki-roots | |
trace | yes | opentelemetry/trace, opentelemetry_sdk/trace, opentelemetry-proto/trace |
zstd-http | zstd | |
zstd-tonic | tonic/zstd |
dep:x turns on the optional dependency x; x/y turns on feature y of dependency x (with ?, only if x is already on).
MSRV history
The minimum Rust version opentelemetry-otlp declares (rust-version), and the release that changed it:
- 0.11.0 (2022-09-13): Rust 1.56
- 0.12.0 (2023-03-26): Rust 1.60
- 0.14.0 (2023-11-06): Rust 1.65
- 0.17.0 (2024-07-15): Rust 1.70
- 0.26.0 (2024-10-01): Rust 1.71.1
- 0.28.0 (2025-02-10): Rust 1.75.0
Stuck on an older compiler? Pin the last version that supports it, for example cargo update -p opentelemetry-otlp --precise <version>, or use resolver 3, which picks compatible versions for you.
More on opentelemetry-otlp
Real downloads, dependents and alternatives: opentelemetry-otlp crate data (562.2K real downloads a day, 1,046 dependents).
docs.rs feature list · crates.io · license Apache-2.0 · edition 2021
Up next
Before you depend on itopentelemetry-otlp crate dataReal downloads, dependents, alternatives.Read it next →Did this answer your question?