Cargo Features
soph-tracing has no features set by default.
[dependencies]
soph-tracing = { version = "0.28.1", 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 and opentelemetry-appender-tracing, grpc-tonic and logs of opentelemetry-otlp, semconv_experimental of opentelemetry-semantic-conventions, rt-tokio of opentelemetry_sdk
- opentelemetry-metrics opentelemetry?
-
Enables opentelemetry, grpc-tonic and metrics of opentelemetry-otlp, semconv_experimental of opentelemetry-semantic-conventions, rt-tokio of opentelemetry_sdk and metrics of tracing-opentelemetry
tracing-opentelemetry:
Enables support for exporting OpenTelemetry metrics
- opentelemetry-trace opentelemetry?
-
Enables opentelemetry, tracing-opentelemetry, grpc-tonic and trace of opentelemetry-otlp, semconv_experimental of opentelemetry-semantic-conventions, rt-tokio of opentelemetry_sdk
- 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.