Cargo Features

Opentelemetry-proto has no features set by default.

[dependencies]
opentelemetry-proto = { version = "0.4.0", features = ["full", "gen-tonic", "gen-tonic-messages", "gen-grpcio", "trace", "metrics", "logs", "zpages", "with-serde"] }
full = gen-grpcio, gen-tonic, logs, metrics, trace, with-serde, zpages
gen-tonic full? = gen-tonic-messages

crates used to generate rs files

Enables transport of tonic ^0.9.0

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.trace.v1::trace_service_client, opentelemetry.proto.collector.trace.v1::trace_service_server, logs::tonic

gen-tonic-messages gen-tonic? = prost, tonic

Affects proto::tonic, common::tonic, metrics::tonic, trace::tonic

gen-grpcio full? = grpcio, prost

Affects proto::grpcio, common::grpcio, logs::grpcio, metrics::grpcio, trace::grpcio

trace full? zpages?

telemetry pillars and functions

Enables trace of opentelemetry and opentelemetry_sdk

Affects proto::collector.trace, proto::tonic.trace, proto::collector.trace, proto::grpcio.trace, transform::trace

metrics full?

Enables metrics of opentelemetry and opentelemetry_sdk

Affects proto::collector.metrics, proto::tonic.metrics, proto::collector.metrics, proto::grpcio.metrics, transform::metrics

logs full?

Enables logs of opentelemetry and opentelemetry_sdk

Affects proto::collector.logs, proto::tonic.logs, proto::collector.logs, proto::grpcio.logs, transform::logs

zpages full? = trace

Affects proto::tonic.tracez, transform::tracez

with-serde full? = serde

add ons

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features.

grpcio gen-grpcio?

Enables grpcio ^0.12

tonic gen-tonic? gen-tonic-messages?

Enables tonic ^0.9.0

prost gen-grpcio? gen-tonic-messages?

Enables prost ^0.11.0

serde with-serde?