Skip to content

Commit 146376f

Browse files
authored
fix(opentelemetry-proto): avoid tonic for gen-tonic-messages (#3455)
1 parent de0d58c commit 146376f

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

opentelemetry-proto/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ default = ["full"]
3535
full = ["gen-tonic", "trace", "logs", "metrics", "zpages", "with-serde", "internal-logs"]
3636

3737
# crates used to generate rs files
38-
gen-tonic = ["gen-tonic-messages", "tonic/channel"]
39-
gen-tonic-messages = ["tonic", "tonic-prost", "prost"]
38+
gen-tonic = ["gen-tonic-messages", "tonic", "tonic-prost", "tonic/channel"]
39+
gen-tonic-messages = ["prost"]
4040

4141
# telemetry pillars and functions
4242
trace = ["opentelemetry/trace", "opentelemetry_sdk/trace"]

opentelemetry-proto/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
//! - `zpages`: generate types that used in zPages. Currently only tracez related types will be generated. Currently supports `gen-tonic`.
1818
//!
1919
//! ## Creates used to generate files
20-
//! - `gen-tonic-messages`: generate rs files using [tonic](https://github.com/hyperium/tonic) and [prost](https://github.com/tokio-rs/prost).
21-
//! - `gen-tonic`: adding tonic transport to "`gen-tonic-messages"
20+
//! - `gen-tonic-messages`: generate OTLP message types using [prost](https://github.com/tokio-rs/prost).
21+
//! - `gen-tonic`: add tonic gRPC client/server transport support on top of `gen-tonic-messages`.
2222
//!
2323
//! ## Misc
2424
//! - `full`: enabled all features above.

0 commit comments

Comments
 (0)