Cargo Features

[dependencies]
opentelemetry-spanprocessor-any = { version = "0.17.0", default-features = false, features = ["trace", "metrics", "serialize", "rt-tokio", "rt-tokio-current-thread", "rt-async-std", "testing"] }
default = trace

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

trace default testing? = async-trait, crossbeam-channel, percent-encoding, pin-project, rand

Affects opentelemetry-spanprocessor-any::trace, export::trace, sdk::propagation, sdk::trace

metrics testing? = dashmap, fnv

Affects opentelemetry-spanprocessor-any::attributes, opentelemetry-spanprocessor-any::metrics, export::metrics, sdk::metrics

serialize = serde
rt-tokio testing? = tokio, tokio-stream

Affects runtime::Tokio, util::tokio_interval_stream

rt-tokio-current-thread testing? = tokio, tokio-stream

Affects runtime::TokioCurrentThread, util::tokio_interval_stream

rt-async-std testing? = async-std

Affects runtime::AsyncStd

testing = metrics, rt-async-std, rt-tokio, rt-tokio-current-thread, trace

Enables macros and rt-multi-thread of tokio

Affects opentelemetry-spanprocessor-any::testing

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.

async-std rt-async-std?
async-trait trace
dashmap metrics?

Enables dashmap ^4.0.1

fnv metrics?
percent-encoding trace
pin-project trace
rand trace
serde serialize?
tokio rt-tokio? rt-tokio-current-thread? testing?
tokio-stream rt-tokio? rt-tokio-current-thread?
crossbeam-channel trace