Cargo Features

init-tracing-opentelemetry has no features set by default.

[dependencies]
init-tracing-opentelemetry = { version = "0.28.0", features = ["jaeger", "otlp", "stdout", "tracer", "xray", "zipkin", "tracing_subscriber_ext", "tls", "tls-roots", "tls-webpki-roots", "logfmt", "tonic"] }
jaeger

Enables opentelemetry-jaeger-propagator

otlp tracing_subscriber_ext? = tracer

Enables http-proto, reqwest-blocking-client and reqwest-rustls of opentelemetry-otlp

Affects init-tracing-opentelemetry::otlp

stdout = tracer

Enables opentelemetry-stdout

opentelemetry-resource-detectors = { workspace = true } //FIXME enable when available for opentelemetry >= 0.25

Affects init-tracing-opentelemetry::stdio

tracer otlp? stdout?

Enables opentelemetry-semantic-conventions

Affects init-tracing-opentelemetry::resource

xray

Enables opentelemetry-aws

zipkin

Enables opentelemetry-zipkin

tracing_subscriber_ext = otlp

Enables tracing-subscriber

Affects init-tracing-opentelemetry::tracing_subscriber_ext

tls

Enables tls of opentelemetry-otlp

tls-roots

Enables tls-roots of opentelemetry-otlp

tls-webpki-roots

Enables tls-webpki-roots of opentelemetry-otlp

logfmt

Enables tracing-logfmt

Affects tracing_subscriber_ext::build_logger_text

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-otlp otlp? tls? tls-roots? tls-webpki-roots?
tonic implicit feature

Enables tonic ^0.12

tonic:

A gRPC over HTTP/2 implementation focused on high performance, interoperability, and flexibility