Cargo Features

[dependencies]
ts_opentelemetry_otlp = { version = "0.13.0-beta.1", default-features = false, features = ["trace", "metrics", "logs", "serialize", "grpc-tonic", "tls", "tls-roots", "grpc-sys", "openssl", "openssl-vendored", "http-proto", "reqwest-blocking-client", "reqwest-client", "reqwest-rustls", "surf-client", "integration-testing"] }
trace default http-proto? integration-testing?

telemetry pillars and functions

Enables trace of ts_opentelemetry_api, traces of ts_opentelemetry_proto and trace of ts_opentelemetry_sdk

need tokio runtime to run smoke tests.

metrics http-proto? = grpc-tonic

Enables metrics of ts_opentelemetry_api, ts_opentelemetry_proto, and ts_opentelemetry_sdk

logs

Enables logs of ts_opentelemetry_api, ts_opentelemetry_proto, and ts_opentelemetry_sdk

serialize = serde

add ons

default = grpc-tonic, trace

These default features are set whenever ts_opentelemetry_otlp is added without default-features = false somewhere in the dependency tree.

grpc-tonic default metrics? = http, prost, tokio, tonic

grpc using tonic

Enables gen-tonic of ts_opentelemetry_proto

Affects metric::ExportMsg, exporter::OTEL_EXPORTER_OTLP_PROTOCOL_DEFAULT

tls tls-roots?

Enables tls of tonic ^0.9.0

Affects tonic::TonicConfig.tls_config

tls-roots = tls

Enables tls-roots of tonic ^0.9.0

tonic:

Deprecated. Please use tls-native-roots instead.

grpc-sys = grpcio, protobuf

grpc using grpcio

Enables gen-protoc of ts_opentelemetry_proto

openssl

Enables openssl of grpcio ^0.12

openssl-vendored

Enables openssl-vendored of grpcio ^0.12

http-proto = http, metrics, prost, trace, ts_opentelemetry_http

http binary

Enables gen-tonic-messages of ts_opentelemetry_proto

Affects http::HttpConfig, exporter::OTEL_EXPORTER_OTLP_PROTOCOL_DEFAULT

reqwest-blocking-client

Enables blocking of reqwest ^0.11, reqwest of ts_opentelemetry_http

reqwest-client = reqwest

Enables reqwest of ts_opentelemetry_http

reqwest-rustls = reqwest

Enables rustls-tls-native-roots of reqwest ^0.11

surf-client = surf

Enables surf of ts_opentelemetry_http

integration-testing = prost, tonic, trace

test

Enables full of tokio

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 grpc-sys? openssl? openssl-vendored?

Enables grpcio ^0.12

Affects exporter::OTEL_EXPORTER_OTLP_PROTOCOL_DEFAULT

ts_opentelemetry_http http-proto? reqwest-blocking-client? reqwest-client? surf-client?
protobuf grpc-sys?

Enables protobuf ^2.18

prost grpc-tonic http-proto? integration-testing?

Enables prost ^0.11.0

tonic grpc-tonic integration-testing? tls? tls-roots?

Enables tonic ^0.9.0

tokio grpc-tonic integration-testing?
reqwest reqwest-blocking-client? reqwest-client? reqwest-rustls?

Enables reqwest ^0.11

surf surf-client?
http grpc-tonic http-proto?

Enables http ^0.2

serde serialize?