Skip to content

Commit 8b7e4bf

Browse files
authored
Merge branch 'main' into ban/bench-shorter
2 parents b114222 + b2de6cc commit 8b7e4bf

File tree

11 files changed

+46
-39
lines changed

11 files changed

+46
-39
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ jobs:
106106
continue-on-error: true # Prevent sudden announcement of a new advisory from failing ci
107107
steps:
108108
- uses: actions/checkout@v4
109-
- uses: EmbarkStudios/cargo-deny-action@v1
109+
- uses: EmbarkStudios/cargo-deny-action@v2
110110
with:
111111
command: check advisories
112112
docs:

.gitmodules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[submodule "opentelemetry-proto/src/proto/opentelemetry-proto"]
22
path = opentelemetry-proto/src/proto/opentelemetry-proto
33
url = https://github.com/open-telemetry/opentelemetry-proto
4-
branch = tags/v1.0.0
4+
branch = tags/v1.5.0

Cargo.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ exclude = ["opentelemetry-prometheus"]
1919
debug = 1
2020

2121
[workspace.dependencies]
22-
async-std = "1.13"
2322
async-trait = "0.1"
2423
bytes = "1"
2524
criterion = "0.5"
@@ -42,8 +41,8 @@ serde = { version = "1.0", default-features = false }
4241
serde_json = "1.0"
4342
temp-env = "0.3.6"
4443
thiserror = { version = "2", default-features = false }
45-
tonic = { version = "0.12.3", default-features = false }
46-
tonic-build = "0.12"
44+
tonic = { version = "0.13", default-features = false }
45+
tonic-build = "0.13"
4746
tokio = { version = "1", default-features = false }
4847
tokio-stream = "0.1"
4948
# Using `tracing 0.1.40` because 0.1.39 (which is yanked) introduces the ability to set event names in macros,

deny.toml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,7 @@
1-
exclude=[
2-
"actix-http",
3-
"actix-http-tracing",
4-
"actix-udp",
5-
"actix-udp-example",
6-
"tracing-grpc",
7-
"http"
8-
]
1+
[graph]
2+
exclude=[]
93

104
[licenses]
11-
unlicensed = "deny"
125
allow = [
136
"MIT",
147
"Apache-2.0",
@@ -29,5 +22,5 @@ license-files = [
2922
]
3023

3124
[advisories]
32-
unmaintained = "allow"
25+
unmaintained = "none"
3326
yanked = "allow"

opentelemetry-otlp/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## vNext
44

5+
- Update `tonic` dependency version to 0.13
6+
57
## 0.29.0
68

79
Released 2025-Mar-21

opentelemetry-otlp/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ opentelemetry_sdk = { features = ["trace", "rt-tokio", "testing"], path = "../op
5050
tokio = { workspace = true, features = ["macros", "rt-multi-thread"] }
5151
futures-util = { workspace = true }
5252
temp-env = { workspace = true }
53-
tonic = { workspace = true, features = ["server"] }
53+
tonic = { workspace = true, features = ["router", "server"] }
5454

5555
[features]
5656
# telemetry pillars and functions
@@ -68,8 +68,8 @@ default = ["http-proto", "reqwest-blocking-client", "trace", "metrics", "logs",
6868
grpc-tonic = ["tonic", "prost", "http", "tokio", "opentelemetry-proto/gen-tonic"]
6969
gzip-tonic = ["tonic/gzip"]
7070
zstd-tonic = ["tonic/zstd"]
71-
tls = ["tonic/tls"]
72-
tls-roots = ["tls", "tonic/tls-roots"]
71+
tls = ["tonic/tls-ring"]
72+
tls-roots = ["tls", "tonic/tls-native-roots"]
7373
tls-webpki-roots = ["tls", "tonic/tls-webpki-roots"]
7474

7575
# http binary

opentelemetry-proto/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## vNext
44

5+
- Update `tonic` dependency version to 0.13
6+
57
## 0.29.0
68

79
Released 2025-Mar-21

opentelemetry-proto/src/proto/tonic/opentelemetry.proto.collector.logs.v1.rs

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ pub mod logs_service_client {
9090
}
9191
impl<T> LogsServiceClient<T>
9292
where
93-
T: tonic::client::GrpcService<tonic::body::BoxBody>,
93+
T: tonic::client::GrpcService<tonic::body::Body>,
9494
T::Error: Into<StdError>,
9595
T::ResponseBody: Body<Data = Bytes> + std::marker::Send + 'static,
9696
<T::ResponseBody as Body>::Error: Into<StdError> + std::marker::Send,
@@ -111,13 +111,13 @@ pub mod logs_service_client {
111111
F: tonic::service::Interceptor,
112112
T::ResponseBody: Default,
113113
T: tonic::codegen::Service<
114-
http::Request<tonic::body::BoxBody>,
114+
http::Request<tonic::body::Body>,
115115
Response = http::Response<
116-
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
116+
<T as tonic::client::GrpcService<tonic::body::Body>>::ResponseBody,
117117
>,
118118
>,
119119
<T as tonic::codegen::Service<
120-
http::Request<tonic::body::BoxBody>,
120+
http::Request<tonic::body::Body>,
121121
>>::Error: Into<StdError> + std::marker::Send + std::marker::Sync,
122122
{
123123
LogsServiceClient::new(InterceptedService::new(inner, interceptor))
@@ -278,7 +278,7 @@ pub mod logs_service_server {
278278
B: Body + std::marker::Send + 'static,
279279
B::Error: Into<StdError> + std::marker::Send + 'static,
280280
{
281-
type Response = http::Response<tonic::body::BoxBody>;
281+
type Response = http::Response<tonic::body::Body>;
282282
type Error = std::convert::Infallible;
283283
type Future = BoxFuture<Self::Response, Self::Error>;
284284
fn poll_ready(
@@ -336,7 +336,9 @@ pub mod logs_service_server {
336336
}
337337
_ => {
338338
Box::pin(async move {
339-
let mut response = http::Response::new(empty_body());
339+
let mut response = http::Response::new(
340+
tonic::body::Body::default(),
341+
);
340342
let headers = response.headers_mut();
341343
headers
342344
.insert(

opentelemetry-proto/src/proto/tonic/opentelemetry.proto.collector.metrics.v1.rs

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ pub mod metrics_service_client {
9090
}
9191
impl<T> MetricsServiceClient<T>
9292
where
93-
T: tonic::client::GrpcService<tonic::body::BoxBody>,
93+
T: tonic::client::GrpcService<tonic::body::Body>,
9494
T::Error: Into<StdError>,
9595
T::ResponseBody: Body<Data = Bytes> + std::marker::Send + 'static,
9696
<T::ResponseBody as Body>::Error: Into<StdError> + std::marker::Send,
@@ -111,13 +111,13 @@ pub mod metrics_service_client {
111111
F: tonic::service::Interceptor,
112112
T::ResponseBody: Default,
113113
T: tonic::codegen::Service<
114-
http::Request<tonic::body::BoxBody>,
114+
http::Request<tonic::body::Body>,
115115
Response = http::Response<
116-
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
116+
<T as tonic::client::GrpcService<tonic::body::Body>>::ResponseBody,
117117
>,
118118
>,
119119
<T as tonic::codegen::Service<
120-
http::Request<tonic::body::BoxBody>,
120+
http::Request<tonic::body::Body>,
121121
>>::Error: Into<StdError> + std::marker::Send + std::marker::Sync,
122122
{
123123
MetricsServiceClient::new(InterceptedService::new(inner, interceptor))
@@ -278,7 +278,7 @@ pub mod metrics_service_server {
278278
B: Body + std::marker::Send + 'static,
279279
B::Error: Into<StdError> + std::marker::Send + 'static,
280280
{
281-
type Response = http::Response<tonic::body::BoxBody>;
281+
type Response = http::Response<tonic::body::Body>;
282282
type Error = std::convert::Infallible;
283283
type Future = BoxFuture<Self::Response, Self::Error>;
284284
fn poll_ready(
@@ -336,7 +336,9 @@ pub mod metrics_service_server {
336336
}
337337
_ => {
338338
Box::pin(async move {
339-
let mut response = http::Response::new(empty_body());
339+
let mut response = http::Response::new(
340+
tonic::body::Body::default(),
341+
);
340342
let headers = response.headers_mut();
341343
headers
342344
.insert(

opentelemetry-proto/src/proto/tonic/opentelemetry.proto.collector.trace.v1.rs

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ pub mod trace_service_client {
9090
}
9191
impl<T> TraceServiceClient<T>
9292
where
93-
T: tonic::client::GrpcService<tonic::body::BoxBody>,
93+
T: tonic::client::GrpcService<tonic::body::Body>,
9494
T::Error: Into<StdError>,
9595
T::ResponseBody: Body<Data = Bytes> + std::marker::Send + 'static,
9696
<T::ResponseBody as Body>::Error: Into<StdError> + std::marker::Send,
@@ -111,13 +111,13 @@ pub mod trace_service_client {
111111
F: tonic::service::Interceptor,
112112
T::ResponseBody: Default,
113113
T: tonic::codegen::Service<
114-
http::Request<tonic::body::BoxBody>,
114+
http::Request<tonic::body::Body>,
115115
Response = http::Response<
116-
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
116+
<T as tonic::client::GrpcService<tonic::body::Body>>::ResponseBody,
117117
>,
118118
>,
119119
<T as tonic::codegen::Service<
120-
http::Request<tonic::body::BoxBody>,
120+
http::Request<tonic::body::Body>,
121121
>>::Error: Into<StdError> + std::marker::Send + std::marker::Sync,
122122
{
123123
TraceServiceClient::new(InterceptedService::new(inner, interceptor))
@@ -278,7 +278,7 @@ pub mod trace_service_server {
278278
B: Body + std::marker::Send + 'static,
279279
B::Error: Into<StdError> + std::marker::Send + 'static,
280280
{
281-
type Response = http::Response<tonic::body::BoxBody>;
281+
type Response = http::Response<tonic::body::Body>;
282282
type Error = std::convert::Infallible;
283283
type Future = BoxFuture<Self::Response, Self::Error>;
284284
fn poll_ready(
@@ -336,7 +336,9 @@ pub mod trace_service_server {
336336
}
337337
_ => {
338338
Box::pin(async move {
339-
let mut response = http::Response::new(empty_body());
339+
let mut response = http::Response::new(
340+
tonic::body::Body::default(),
341+
);
340342
let headers = response.headers_mut();
341343
headers
342344
.insert(

0 commit comments

Comments
 (0)