Cargo Features

[dependencies]
ts_opentelemetry_sdk = { version = "0.20.0-beta.1", default-features = false, features = ["trace", "jaeger_remote_sampler", "logs", "metrics", "rt-tokio", "rt-tokio-current-thread", "rt-async-std", "testing"] }
default = trace

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

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

Enables trace of ts_opentelemetry_api

Affects export::trace, ts_opentelemetry_sdk::propagation, ts_opentelemetry_sdk::trace, testing::trace

jaeger_remote_sampler = http, serde, serde_json, trace, ts_opentelemetry_http, url
logs testing? = async-trait, crossbeam-channel, serde_json

Enables logs of ts_opentelemetry_api

Affects export::logs, ts_opentelemetry_sdk::logs

metrics testing? = async-trait, regex

Enables metrics of ts_opentelemetry_api

Affects ts_opentelemetry_sdk::metrics, testing::metrics

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 = logs, metrics, rt-async-std, rt-tokio, rt-tokio-current-thread, trace

Enables macros and rt-multi-thread of tokio, testing of ts_opentelemetry_api

Affects testing::trace, testing::metrics

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.

ts_opentelemetry_http jaeger_remote_sampler?
async-std rt-async-std?
async-trait logs? metrics? trace
crossbeam-channel logs? trace
percent-encoding trace
rand trace
regex metrics?
serde jaeger_remote_sampler?
serde_json jaeger_remote_sampler? logs?
url jaeger_remote_sampler?
tokio rt-tokio? rt-tokio-current-thread? testing?
tokio-stream rt-tokio? rt-tokio-current-thread?
http jaeger_remote_sampler?

Enables http ^0.2