Cargo Features

tracing-opentelemetry = { version = "0.22.0", default-features = false, features = ["metrics", "tracing-log", "async-trait", "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

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features.

tracing-log default
async-trait implicit feature

Enables async-trait

Fix minimal-versions

thiserror implicit feature

Enables thiserror



smallvec metrics