-
Notifications
You must be signed in to change notification settings - Fork 2k
[CHORE] Bump version of tonic to 0.14 and shake out the damage. #6100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Reviewer ChecklistPlease leverage this checklist to ensure your code review is thorough before approving Testing, Bugs, Errors, Logs, Documentation
System Compatibility
Quality
|
|
The upgrade also refreshes the surrounding gRPC ecosystem crates and retools build tooling and service implementations to align with the updated APIs, including the revised health reporting flows, client channel adjustments, and the newly required Spanner throughput_mode field, so end-to-end validation of the gRPC services remains important. Key Changes• Bumped workspace dependencies to Affected Areas• This summary was automatically generated by @propel-code-bot |
4c34c40 to
a809fdb
Compare
8983b45 to
d901714
Compare
a809fdb to
46ebbf2
Compare
d901714 to
368def8
Compare
d1e28ae to
742a707
Compare
368def8 to
2e30f26
Compare
62532d6 to
e4ea26a
Compare
2e30f26 to
093f00b
Compare
e4ea26a to
ef9b07f
Compare
093f00b to
07459d5
Compare
| task::{Context, Poll}, | ||
| }; | ||
| use tonic::{body::BoxBody, transport::Error, Code}; | ||
| use tonic::{body::Body, transport::Error, Code}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Logic] In tonic 0.14, tonic::body::Body is typically the trait (re-exported from http-body). Using it as a concrete type in Response = http::Response<Body> will likely cause a compilation error because traits cannot be used as concrete types without dyn or Box.
You likely intend to use the concrete body struct tonic::transport::Body (which replaces BoxBody usage in many cases).
| use tonic::{body::Body, transport::Error, Code}; | |
| use tonic::{transport::{Body, Error}, Code}; |
Context for Agents
In `tonic` 0.14, `tonic::body::Body` is typically the **trait** (re-exported from `http-body`). Using it as a concrete type in `Response = http::Response<Body>` will likely cause a compilation error because traits cannot be used as concrete types without `dyn` or `Box`.
You likely intend to use the concrete body struct `tonic::transport::Body` (which replaces `BoxBody` usage in many cases).
```suggestion
use tonic::{transport::{Body, Error}, Code};
```
File: rust/tracing/src/grpc_client_trace_layer.rs
Line: 8There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the suggestion. Code compiles. CI passes. I'm going to disregard you.
Description of changes
The most recent spanner changes pull in a dep on tonic::status::[email protected], which is different from
the tonic::[email protected] accessible via the workspace. Update tonic in the workspace to allow
accessing the newest version of Status.
Test plan
CI
Migration plan
None.
Observability plan
N/A
Documentation Changes
N/A