Cargo Features
[dependencies]
opentelemetry-proto = { version = "0.31.0", default-features = false, features = ["full", "gen-tonic", "gen-tonic-messages", "trace", "metrics", "logs", "zpages", "profiles", "testing", "internal-logs", "with-schemars", "with-serde"] }
- default = full
-
The
fullfeature is set by default wheneveropentelemetry-protois added withoutsomewhere in the dependency tree.default-features = false - full default = gen-tonic, internal-logs, logs, metrics, trace, with-serde, zpages
- gen-tonic full = gen-tonic-messages
-
crates used to generate rs files
Affects
opentelemetry.proto.collector.logs.v1::logs_service_client,opentelemetry.proto.collector.logs.v1::logs_service_server,opentelemetry.proto.collector.metrics.v1::metrics_service_client,opentelemetry.proto.collector.metrics.v1::metrics_service_server,opentelemetry.proto.collector.profiles.v1development::profiles_service_client,opentelemetry.proto.collector.profiles.v1development::profiles_service_server,opentelemetry.proto.collector.trace.v1::trace_service_client,opentelemetry.proto.collector.trace.v1::trace_service_server… - gen-tonic-messages gen-tonic? = prost, tonic, tonic-prost
-
Affects
proto::tonic,common::tonic,logs::tonic,metrics::tonic,trace::tonic… - trace full zpages?
-
telemetry pillars and functions
Enables trace of opentelemetry and opentelemetry_sdk
Affects
proto::collector.trace,proto::tonic.trace,transform::trace,common::tonic.ResourceAttributesWithSchema… - metrics full
-
Enables metrics of opentelemetry and opentelemetry_sdk
Affects
proto::collector.metrics,proto::tonic.metrics,transform::metrics… - logs full
-
Enables logs of opentelemetry and opentelemetry_sdk
Affects
proto::collector.logs,proto::tonic.logs,transform::logs,common::tonic.ResourceAttributesWithSchema… - zpages full = trace
-
Affects
proto::tonic.tracez,transform::tracez… - profiles
-
Affects
proto::collector.profiles,proto::tonic.profiles,transform::profiles… - testing
-
Enables testing of opentelemetry
- internal-logs full
-
add ons
Enables internal-logs of opentelemetry
- with-schemars = schemars
- with-serde full = base64, const-hex, serde, serde_json
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.