9 breaking releases

0.27.0 Nov 12, 2024
0.25.0 Sep 9, 2024
0.7.0 Jul 15, 2024
0.5.0 Feb 25, 2024
0.1.0 Sep 13, 2022

#2 in #otlp

Download history 280695/week @ 2024-08-23 278055/week @ 2024-08-30 346492/week @ 2024-09-06 264799/week @ 2024-09-13 324124/week @ 2024-09-20 361828/week @ 2024-09-27 399789/week @ 2024-10-04 406113/week @ 2024-10-11 458835/week @ 2024-10-18 451125/week @ 2024-10-25 423715/week @ 2024-11-01 446000/week @ 2024-11-08 470762/week @ 2024-11-15 353565/week @ 2024-11-22 371414/week @ 2024-11-29 429571/week @ 2024-12-06

1,732,381 downloads per month
Used in 294 crates (18 directly)

Apache-2.0

1.5MB
23K SLoC

OpenTelemetry — An observability framework for cloud-native software.

OpenTelemetry Proto

This crate contains generated files from opentelemetry-proto repository and transformation between types from generated files and types defined in opentelemetry.

*Compiler support: [requires rustc 1.71.1+]


lib.rs:

This crate contains generated files from opentelemetry-proto repository and transformation between types from generated files and types defined in opentelemetry

Based on the build tool needed, users can choose to generate files using tonic or grpcio.

Feature flags

Opentelemetry-proto includes a set of feature flags to avoid pull in unnecessary dependencies. The following is the full list of currently supported features:

Signals

  • trace: generate types that used in traces. Currently supports gen-tonic.
  • metrics: generate types that used in metrics. Currently supports gen-tonic.
  • logs: generate types that used in logs. Currently supports gen-tonic.
  • zpages: generate types that used in zPages. Currently only tracez related types will be generated. Currently supports gen-tonic.

Creates used to generate files

  • gen-tonic-messages: generate rs files using tonic and prost.
  • gen-tonic: adding tonic transport to "`gen-tonic-messages"

Misc

  • full: enabled all features above.

By default, no feature is enabled.

Dependencies

~1–8MB
~65K SLoC