Cargo Features

[dependencies]
opentelemetry-otlp = { version = "0.32.0", default-features = false, features = ["trace", "metrics", "logs", "internal-logs", "serialize", "grpc-tonic", "gzip-tonic", "zstd-tonic", "experimental-grpc-retry", "gzip-http", "zstd-http", "tls", "tls-ring", "tls-aws-lc", "tls-provider-agnostic", "tls-roots", "tls-webpki-roots", "http-proto", "experimental-http-retry", "http-json", "reqwest-blocking-client", "reqwest-client", "reqwest-rustls", "reqwest-rustls-webpki-roots", "hyper-client", "integration-testing"] }
trace default http-json? http-proto integration-testing?

telemetry pillars and functions

Enables trace of opentelemetry, opentelemetry-proto, and opentelemetry_sdk

metrics default http-json? http-proto

Enables metrics of opentelemetry, opentelemetry-proto, and opentelemetry_sdk

logs default integration-testing?

Enables logs of opentelemetry, opentelemetry-proto, and opentelemetry_sdk

internal-logs default

Enables internal-logs of opentelemetry and opentelemetry_sdk

serialize = serde, serde_json

add ons

default = http-proto, internal-logs, logs, metrics, reqwest-blocking-client, trace

These default features are set whenever opentelemetry-otlp is added without default-features = false somewhere in the dependency tree.

grpc-tonic experimental-grpc-retry? = http, prost, tokio, tonic, tonic-types

grpc using tonic

Enables gen-tonic of opentelemetry-proto

Affects opentelemetry-otlp::TonicExporterBuilderSet, opentelemetry-otlp::tonic_types, retry_classification::grpc, retry_classification::grpc.classify_tonic_status, opentelemetry-otlp::retry_classification, opentelemetry-otlp::retry

gzip-tonic

Enables gzip of tonic

zstd-tonic

Enables zstd of tonic

experimental-grpc-retry = grpc-tonic

grpc with retry support

Enables experimental_async_runtime and rt-tokio of opentelemetry_sdk

Affects tonic::WithTonicConfig.with_retry_policy, retry::retry_with_backoff

gzip-http = flate2

http compression

zstd-http = zstd
tls = tls-ring

Deprecated: use tls-ring or tls-aws-lc or tls-provider-agnostic

Affects tonic::WithTonicConfig.with_tls_config, opentelemetry-otlp::tonic_types.transport

tls-ring tls?

Enables tls-ring of tonic

Affects tonic::WithTonicConfig.with_tls_config, opentelemetry-otlp::tonic_types.transport

tls-aws-lc

Enables tls-aws-lc of tonic

Affects tonic::WithTonicConfig.with_tls_config, opentelemetry-otlp::tonic_types.transport

tls-provider-agnostic

Provider-agnostic TLS: enables TLS code paths without bundling a specific crypto provider. Use this when you install a
CryptoProvider globally (e.g., via rustls-openssl for FIPS/OpenSSL environments).

Enables tls-connect-info of tonic

Affects tonic::WithTonicConfig.with_tls_config, opentelemetry-otlp::tonic_types.transport

tls-roots

Enables tls-native-roots of tonic

tls-webpki-roots

Enables tls-webpki-roots of tonic

http-proto default = http, metrics, opentelemetry-http, prost, trace

http binary

Enables gen-tonic-messages of opentelemetry-proto

Affects opentelemetry-otlp::HttpExporterBuilderSet

experimental-http-retry = httpdate, tokio

http with retry support.

Enables experimental_async_runtime and rt-tokio of opentelemetry_sdk

Affects http::WithHttpConfig.with_retry_policy, retry_classification::http, opentelemetry-otlp::retry_classification, opentelemetry-otlp::retry, retry::retry_with_backoff

http-json = http, metrics, opentelemetry-http, prost, serde_json, trace

Enables gen-tonic-messages and with-serde of opentelemetry-proto

Affects opentelemetry-otlp::HttpExporterBuilderSet

reqwest-blocking-client default

Enables reqwest-blocking of opentelemetry-http, blocking of reqwest

reqwest-client = reqwest

Enables reqwest of opentelemetry-http

reqwest-rustls = reqwest

Enables reqwest-rustls of opentelemetry-http

reqwest-rustls-webpki-roots = reqwest

Enables reqwest-rustls-webpki-roots of opentelemetry-http

hyper-client

Enables hyper of opentelemetry-http

integration-testing = logs, prost, tonic, trace

test

Enables full of tokio

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

opentelemetry-http http-json? http-proto hyper-client? reqwest-blocking-client reqwest-client? reqwest-rustls? reqwest-rustls-webpki-roots?
prost grpc-tonic? http-json? http-proto integration-testing?
tonic grpc-tonic? gzip-tonic? integration-testing? tls-aws-lc? tls-provider-agnostic? tls-ring? tls-roots? tls-webpki-roots? zstd-tonic?
tonic-types grpc-tonic?
tokio experimental-http-retry? grpc-tonic? integration-testing?
reqwest reqwest-blocking-client reqwest-client? reqwest-rustls? reqwest-rustls-webpki-roots?
http grpc-tonic? http-json? http-proto
httpdate experimental-http-retry?
serde serialize?
serde_json http-json? serialize?
flate2 gzip-http?

Enables flate2

compression dependencies

zstd zstd-http?