Cargo Features

[dependencies]
opentelemetry-tide = { version = "0.12.0", default-features = false, features = ["full", "trace", "metrics"] }
default = full

The full feature is set by default whenever opentelemetry-tide is added without default-features = false somewhere in the dependency tree.

full default = metrics, trace
trace full

Enables trace of opentelemetry ^0.17

Affects opentelemetry-tide::TideExt.with_tracing_middleware, opentelemetry-tide::TideExt.with_default_tracing_middleware, middlewares::tracing, opentelemetry-tide::TideExt.with_middlewares, opentelemetry-tide::TideExt.with_default_middlewares

metrics full = opentelemetry-prometheus, prometheus

Enables metrics of opentelemetry ^0.17

Affects opentelemetry-tide::TideExt.with_metrics_middleware, opentelemetry-tide::TideExt.with_default_metrics_middleware, middlewares::metrics, opentelemetry-tide::TideExt.with_middlewares, opentelemetry-tide::TideExt.with_default_middlewares

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-prometheus metrics?

Enables opentelemetry-prometheus ^0.10

prometheus metrics?