Cargo Features

[dependencies]
tracing-opentelemetry = { version = "0.28.0", default-features = false, features = ["metrics", "metrics_gauge_unstable", "tracing-log", "async-trait", "futures-util", "lazy_static", "thiserror"] }
default = metrics, tracing-log

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

metrics default = smallvec

Enables support for exporting OpenTelemetry metrics

Enables metrics of opentelemetry and opentelemetry_sdk

metrics_gauge_unstable

Enables experimental support for OpenTelemetry gauge metrics

Enables otel_unstable of opentelemetry

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.

tracing-log default
async-trait implicit feature

Enables async-trait

Fix minimal-versions

futures-util implicit feature

Enables futures-util

futures-util:

Common utilities and extension traits for the futures-rs library

lazy_static implicit feature

Enables lazy_static

lazy_static:

A macro for declaring lazily evaluated statics in Rust

thiserror implicit feature

Enables thiserror ^1.0.31

thiserror:

derive(Error)

smallvec metrics