Cargo Features

ts_opentelemetry_proto has no features set by default.

[dependencies]
ts_opentelemetry_proto = { version = "0.3.0-beta.1", features = ["full", "gen-tonic", "gen-tonic-messages", "gen-protoc", "traces", "metrics", "logs", "zpages", "with-serde"] }
full = gen-protoc, gen-tonic, logs, metrics, traces, 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, traces::tonic

gen-protoc full? = grpcio, protobuf

Affects proto::grpcio, common::grpcio, logs::grpcio, traces::grpcio

traces full? zpages?

telemetry pillars and functions

Affects proto::collector.trace, proto::tonic.trace, proto::grpcio.trace, proto::grpcio.trace_service, proto::grpcio.trace_service_grpc, transform::traces

metrics full?

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

logs full?

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

zpages full? = traces

Affects proto::grpcio.tracez, transform::tracez

with-serde full? = serde

add ons

Enables with-serde of protobuf ^2.18

todo: update to 3.0 so we have docs for generated types.

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.

grpcio gen-protoc?

Enables grpcio ^0.12

tonic gen-tonic? gen-tonic-messages?

Enables tonic ^0.9.0

prost gen-tonic-messages?

Enables prost ^0.11.0

protobuf gen-protoc? with-serde?

Enables protobuf ^2.18

serde with-serde?