Skip to content

Commit 90a70ee

Browse files
beneschTommyCpp
andauthored
opentelemetry-otlp: upgrade to tonic 0.7 (open-telemetry#783)
Co-authored-by: Zhongyang Wu <[email protected]>
1 parent f4f8d58 commit 90a70ee

File tree

4 files changed

+7
-8
lines changed

4 files changed

+7
-8
lines changed

examples/external-otlp-tonic-tokio/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ opentelemetry = { path = "../../opentelemetry", features = ["rt-tokio", "metrics
99
opentelemetry-otlp = { path = "../../opentelemetry-otlp", features = ["tonic", "tls", "tls-roots"] }
1010
serde_json = "1.0"
1111
tokio = { version = "1.0", features = ["full"] }
12-
tonic = "0.6.2"
12+
tonic = "0.7.1"
1313
url = "2.2.0"

opentelemetry-otlp/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ opentelemetry = { version = "0.17", default-features = false, features = ["trace
3939
opentelemetry-http = { version = "0.6", path = "../opentelemetry-http", optional = true }
4040
protobuf = { version = "2.18", optional = true }
4141

42-
prost = { version = "0.9", optional = true }
43-
tonic = { version = "0.6.2", optional = true }
42+
prost = { version = "0.10.1", optional = true }
43+
tonic = { version = "0.7.1", optional = true }
4444
tokio = { version = "1.0", features = ["sync", "rt"], optional = true }
4545

4646
reqwest = { version = "0.11", optional = true, default-features = false }

opentelemetry-proto/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ build-client = []
4747

4848
[dependencies]
4949
grpcio = { version = "0.9", optional = true }
50-
tonic = { version = "0.6.2", optional = true }
51-
prost = { version = "0.9", optional = true }
50+
tonic = { version = "0.7.1", optional = true }
51+
prost = { version = "0.10.1", optional = true }
5252
protobuf = { version = "2.18", optional = true } # todo: update to 3.0 so we have docs for generated types.
5353
opentelemetry = { version = "0.17", default-features = false, features = ["trace", "metrics"], path = "../opentelemetry" }
5454
futures = { version = "0.3", default-features = false, features = ["std"] }
@@ -61,5 +61,5 @@ protobuf-codegen = { version = "2.16" }
6161
protoc-grpcio = { version = "3.0" }
6262

6363
[build-dependencies]
64-
tonic-build = { version = "0.6.2", optional = true }
65-
prost-build = { version = "0.9", optional = true }
64+
tonic-build = { version = "0.7.1", optional = true }
65+
prost-build = { version = "0.10.1", optional = true }

opentelemetry-proto/build.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ fn main() -> Result<(), Error> {
1111
tonic_build::configure()
1212
.build_server(cfg!(feature = "build-server"))
1313
.build_client(cfg!(feature = "build-client"))
14-
.format(false)
1514
.compile(
1615
&[
1716
"src/proto/opentelemetry-proto/opentelemetry/proto/common/v1/common.proto",

0 commit comments

Comments
 (0)