Cargo Features

tracing-otel-extra has no features set by default.

[dependencies]
tracing-otel-extra = { version = "0.31.0", features = ["fields", "macros", "http", "otel", "logger", "context", "span", "trace", "env", "opentelemetry-otlp"] }
fields http? span?

Base dependencies

Enables http

Affects trace::fields

macros span?

Enables tracing

tracing and tracing-opentelemetry

Affects tracing-otel-extra::macros

http context? span? = fields

Composite features

Enables http, opentelemetry, opentelemetry-http, tracing, and tracing-opentelemetry

Affects trace::http

otel logger?

Core features
This feature is used to enable the OpenTelemetry integration.

Enables tracing-opentelemetry-extra

Affects tracing-otel-extra::otel

logger env? = otel

This feature is used to enable the logging integration.

Enables tracing-subscriber, opentelemetry, tracing, and tracing-appender, subscriber of tracing-opentelemetry-extra

Affects tracing-otel-extra::logs

context span? = http

Feature combinations

Affects trace::context

span trace? = context, fields, http, macros

Affects trace::span

trace = span
env = logger

Enables envy

Affects logger::init_logger_from_env, logger::init_logging_from_env, tracing-otel-extra::logs

Features from optional dependencies

opentelemetry-otlp implicit feature

Enables opentelemetry-otlp

opentelemetry-otlp:

Exporter for the OpenTelemetry Collector