Cargo Features

soph-tracing has no features set by default.

[dependencies]
soph-tracing = { version = "0.30.0", features = ["console", "env-filter", "error", "file-appender", "opentelemetry-logs", "opentelemetry-metrics", "opentelemetry-trace", "opentelemetry"] }
console

Enables console-subscriber

optional

env-filter

Enables env-filter of tracing-subscriber

error

Enables tracing-error

file-appender

Enables tracing-appender

Affects config::Tracing.rotation, config::Tracing.filename_prefix, config::Tracing.filename_suffix, config::Tracing.max_log_files, config::Tracing.directory

opentelemetry-logs opentelemetry?

Enables opentelemetry ^0.28.0 and opentelemetry-appender-tracing ^0.28.1, grpc-tonic and logs of opentelemetry-otlp ^0.28.0, semconv_experimental of opentelemetry-semantic-conventions ^0.28.0, rt-tokio of opentelemetry_sdk ^0.28.0

opentelemetry-metrics opentelemetry?

Enables opentelemetry ^0.28.0, grpc-tonic and metrics of opentelemetry-otlp ^0.28.0, semconv_experimental of opentelemetry-semantic-conventions ^0.28.0, rt-tokio of opentelemetry_sdk ^0.28.0 and metrics of tracing-opentelemetry ^0.29.0

tracing-opentelemetry:

Enables support for exporting OpenTelemetry metrics

opentelemetry-trace opentelemetry?

Enables opentelemetry ^0.28.0, tracing-opentelemetry ^0.29.0, grpc-tonic and trace of opentelemetry-otlp ^0.28.0, semconv_experimental of opentelemetry-semantic-conventions ^0.28.0, rt-tokio of opentelemetry_sdk ^0.28.0

opentelemetry = opentelemetry-logs, opentelemetry-metrics, opentelemetry-trace

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-otlp opentelemetry-logs? opentelemetry-metrics? opentelemetry-trace?

Enables opentelemetry-otlp ^0.28.0

opentelemetry-semantic-conventions opentelemetry-logs? opentelemetry-metrics? opentelemetry-trace?

Enables opentelemetry-semantic-conventions ^0.28.0