Skip to content

add support for tower's load-shed layer - #2189

Merged
LucioFranco merged 3 commits into
grpc:masterfrom
joeroback:load_shed
Jun 7, 2025
Merged

LucioFranco merged 3 commits into
grpc:masterfrom
joeroback:load_shed

Conversation

@joeroback

Copy link
Copy Markdown
Contributor

picking up from #1616 as that branch was out of date.

@abizjak

Text from original PR:

Add an option to enable load shedding for the service constructed for the connection.

Motivation

In the server we are implementing we want to load-shed when the service is overloaded, and we want to limit the number of concurrent requests per connection. We use tower::load_shed layer for load shedding, but this only applies to the entire service.

If we additionally apply the per-connection concurrency limit the issue is that this limit is typically hit first and so the service responds with "not ready". As a result the load-shed layer of the service is never reached meaning that requests just queue up.

Solution

The solution is to optionally add a load-shed layer to the per-connection service constructed by tonic.

@joeroback
joeroback force-pushed the load_shed branch 5 times, most recently from d7566a5 to 5250ea9 Compare April 1, 2025 20:32
@joeroback joeroback changed the title add support for tower load-shed add support for tower's load-shed layer Apr 1, 2025
@joeroback

Copy link
Copy Markdown
Contributor Author

@tottoto @djc hi. first PR into tonic. would it be possible to start reviewing this and providing feedback? thanks!

@LucioFranco LucioFranco left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be interesting to see if we could write a test for this?

@joeroback

Copy link
Copy Markdown
Contributor Author

Would be interesting to see if we could write a test for this?

i took my first shot on adding a integration test for resource_exhausted. not sure how much i should or should not expand on this.

@joeroback

Copy link
Copy Markdown
Contributor Author

@LucioFranco any thoughts on the added tests? open this PR in feb, hope to get this merged soon and get back to using an official release of tonic in our projects. thx

@LucioFranco LucioFranco left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the delay, well get this into a release soon.

@LucioFranco
LucioFranco merged commit 2bd66e4 into grpc:master Jun 7, 2025
dfawley added a commit to dfawley/grpc-rust that referenced this pull request Jul 11, 2025
* chore: Use symbolic link for license file (grpc#2241)

* chore: Use inline format argument (grpc#2260)

* chore: Add `flake.nix` (grpc#2261)

* chore: Fix interop test certs (grpc#2262)

* chore: Fix interop test certs

* fix bash script:

* fix: tls config overwrite in endpoint (grpc#2252)

* fix: tls config overwrite in endpoint

PR grpc#1866 fixed the breaking change introduced in grpc#1731, but
resets the TLS config without checking if `tls` is set. This
patch resolves the regression and restores expected behaviour.

* fix: cargo fmt whitespace check

---------

Co-authored-by: vigneshwar.sm <[email protected]>
Co-authored-by: Lucio Franco <[email protected]>

* chore(tonic-bench): Fix failing bench (grpc#2207)

Co-authored-by: Lucio Franco <[email protected]>

* feat: expose creation of HealthService and HealthReporter (grpc#2251)

* Expose creation of HealthService and HealthReporter

* add default impl for HealthReporter

* [spr] initial version (grpc#2264)

Created using spr 1.3.6-beta.1

* Revert "[spr] initial version (grpc#2264)" (grpc#2265)

* chore: Prepare `v0.13.1` release



Reviewers: 

Pull Request: grpc#2266

* chore: Disable unused tower feature (grpc#2270)

* chore(ci): Set RUSTFLAGS only on check job (grpc#2271)

* chore: Update to webpki-roots 1 (grpc#2269)

* chore(ci): Update to cargo-check-external-types 0.2 (grpc#2272)

* chore(ci): Set token permission to read (grpc#2275)

* chore(test): Remove cargo-machete config (grpc#2278)

* chore: Remove unused dependency (grpc#2277)

* feat: add support for tower's load-shed layer (grpc#2189)

Refs: grpc#1616

* chore: box Status contents (grpc#2253) (grpc#2282)

* chore: box Status contents (grpc#2253)

* chore: use private into_status method

* chore(doc): Fix outdated limit in comment (grpc#2297)

* fix outdated limit in comment

This mention was missed when the default changed in grpc#1335

* Add backquotes

Co-authored-by: tottoto <[email protected]>

---------

Co-authored-by: tottoto <[email protected]>

* feat: Update to prost 0.14 (grpc#2300)

* chore: Start development of version 0.14 (grpc#2303)

* chore(build): Make empty client and server modules private (grpc#2291)

Co-authored-by: Lucio Franco <[email protected]>
Co-authored-by: tottoto <[email protected]>

* chore(test): Simplify skip debug test (grpc#2305)

* chore(ci): Exclude semver check of unreleased crate (grpc#2304)

* feat(types): Update error_details.proto to a56cbf3b (grpc#2286) (grpc#2306)

* chore(test): Remove unnecessary prost-build dependency (grpc#2307)

* feat(transport): Allow setting TCP_KEEPINTVL and TCP_KEEPCNT (grpc#2299)

* Allow setting TCP_KEEPINTVL and TCP_KEEPCNT

* fix windows

* fix clippy windows

* fix(tonic): make `Streaming` `Sync` again (grpc#2293)

The boxed `Decoder` inside `Streaming` need not be `Sync` since
grpc#804.  Unfortunately, that makes
`Streaming` non-`Sync`, meaning that all the generated `tonic` futures
cannot be awaited in `Sync` futures.

In fact, the only times we use the `Decoder`, we have a `&mut` unique
reference to it, so we are guaranteed not to require synchronization.

The `sync_wrapper` crate encodes this reasoning, allowing us to safely
make the `Streaming` type `Sync` regardless of whether the contained
`Decoder` is `Sync` or not.

* feat: preserve user-agent header (grpc#2290)

Co-authored-by: Lucio Franco <[email protected]>

* chore: Make publish script portable (grpc#2313)

* feat(tls): Add tls handshake timeout support (grpc#2309)

Co-authored-by: tottoto <[email protected]>

* docs(tonic-build): remove doc-difference between `lib.rs` and Readme (grpc#2308)

* doc: try to improve the doc-disparity between `tonic-build`'s `lib.rs` and the readme

* Fix indentation

* fix the doctests

* fix a typo and retes an assumption

* Change `compile_fail` to `ignore`

Co-authored-by: tottoto <[email protected]>

---------

Co-authored-by: tottoto <[email protected]>

* Merge changes from next to master branch (grpc#2315)

Co-authored-by: Arjan Singh Bal <[email protected]>
Co-authored-by: Easwar Swaminathan <[email protected]>

* chore(interop): Update to console 0.16 (grpc#2318)

* chore(test): Remove unnecessary tokio-stream dependency (grpc#2311)

* chore(test): Refactor default stubs test (grpc#2310)

* chore(test): Use tempfile crate to handle temporary file (grpc#2325)

* chore(grpc): Update to rand 0.9 (grpc#2324)

---------

Co-authored-by: tottoto <[email protected]>
Co-authored-by: Lucio Franco <[email protected]>
Co-authored-by: Vigneshwar S <[email protected]>
Co-authored-by: vigneshwar.sm <[email protected]>
Co-authored-by: Rafael RL <[email protected]>
Co-authored-by: Leon Hartley <[email protected]>
Co-authored-by: Joe Roback <[email protected]>
Co-authored-by: Raphael Taylor-Davies <[email protected]>
Co-authored-by: Alexis Darrasse <[email protected]>
Co-authored-by: Alex Steele <[email protected]>
Co-authored-by: Kristopher Wuollett <[email protected]>
Co-authored-by: Makro <[email protected]>
Co-authored-by: James Kay <[email protected]>
Co-authored-by: Darren Bolduc <[email protected]>
Co-authored-by: Honsun Zhu <[email protected]>
Co-authored-by: Frank Elsinga <[email protected]>
Co-authored-by: Arjan Singh Bal <[email protected]>
Co-authored-by: Easwar Swaminathan <[email protected]>
@Thynix

Thynix commented Jul 25, 2025

Copy link
Copy Markdown

Sorry for the delay, well get this into a release soon.

@LucioFranco I don't see a milestone beyond 0.13 in the issue tracker. Are there things I can do to help with getting to the next release? Load shedding would be great for my use case.

renovate Bot added a commit to OhataKenji/zelith that referenced this pull request Nov 7, 2026
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [tonic](https://redirect.github.com/grpc/grpc-rust) | dependencies |
minor | `0.12.3` → `0.14.0` |

---

### Release Notes

<details>
<summary>grpc/grpc-rust (tonic)</summary>

###
[`v0.14.9`](https://redirect.github.com/grpc/grpc-rust/releases/tag/tonic-v0.14.9)

[Compare
Source](https://redirect.github.com/grpc/grpc-rust/compare/tonic-v0.14.8...tonic-v0.14.9)

##### Added

- *(transport)* expose h2 reset stream settings on Endpoint
([#&#8203;2972](https://redirect.github.com/grpc/grpc-rust/pull/2972))

##### Fixed

- *(server)* set a timer on HTTP/1 connections so hyper's header read
timeout applies
([#&#8203;2980](https://redirect.github.com/grpc/grpc-rust/pull/2980))

###
[`v0.14.8`](https://redirect.github.com/grpc/grpc-rust/releases/tag/tonic-types-v0.14.8)

[Compare
Source](https://redirect.github.com/grpc/grpc-rust/compare/tonic-v0.14.7...tonic-v0.14.8)

##### Fixed

- *(types)* Serialize `BadRequest::FieldViolation` `reason` and
`localized_message`
([#&#8203;2461](https://redirect.github.com/grpc/grpc-rust/pull/2461))
- fix/silence all clippy warnings
([#&#8203;2807](https://redirect.github.com/grpc/grpc-rust/pull/2807))

##### Other

- fix changelog duplicate and update repository URLs
([#&#8203;2943](https://redirect.github.com/grpc/grpc-rust/pull/2943))
- License update
([#&#8203;2749](https://redirect.github.com/grpc/grpc-rust/pull/2749))

###
[`v0.14.7`](https://redirect.github.com/grpc/grpc-rust/releases/tag/tonic-reflection-v0.14.7)

[Compare
Source](https://redirect.github.com/grpc/grpc-rust/compare/tonic-v0.14.6...tonic-v0.14.7)

##### Fixed

- *(reflection)* preserve custom options in served descriptors
([#&#8203;2730](https://redirect.github.com/grpc/grpc-rust/pull/2730))

##### Other

- fix changelog duplicate and update repository URLs
([#&#8203;2943](https://redirect.github.com/grpc/grpc-rust/pull/2943))
- enable missing feature for test build
([#&#8203;2820](https://redirect.github.com/grpc/grpc-rust/pull/2820))
- License update
([#&#8203;2749](https://redirect.github.com/grpc/grpc-rust/pull/2749))

###
[`v0.14.6`](https://redirect.github.com/grpc/grpc-rust/releases/tag/tonic-v0.14.6)

[Compare
Source](https://redirect.github.com/grpc/grpc-rust/compare/v0.14.5...tonic-v0.14.6)

##### Added

- *(transport/channel)* expose ServerCertVerifier API
([#&#8203;2612](https://redirect.github.com/hyperium/tonic/pull/2612))

##### Fixed

- map no trailers ok status to unknown
([#&#8203;2543](https://redirect.github.com/hyperium/tonic/pull/2543))

##### Other

- add max_frame_size to client Endpoint
([#&#8203;2592](https://redirect.github.com/hyperium/tonic/pull/2592))
- Allow setting the HTTP/2 client header table size
([#&#8203;2582](https://redirect.github.com/hyperium/tonic/pull/2582))
- update rust edition and version to 2024 and 1.88, respectively
([#&#8203;2525](https://redirect.github.com/hyperium/tonic/pull/2525))

###
[`v0.14.5`](https://redirect.github.com/grpc/grpc-rust/releases/tag/v0.14.5)

[Compare
Source](https://redirect.github.com/grpc/grpc-rust/compare/v0.14.4...v0.14.5)

#### What's Changed

- Add max connections setting

**Full Changelog**:
<grpc/grpc-rust@v0.14.4...v0.14.5>

###
[`v0.14.4`](https://redirect.github.com/grpc/grpc-rust/releases/tag/v0.14.4)

[Compare
Source](https://redirect.github.com/grpc/grpc-rust/compare/v0.14.3...v0.14.4)

#### What's Changed

- chore(doc): Replace doc_auto_cfg config with doc_cfg by
[@&#8203;tottoto](https://redirect.github.com/tottoto) in
[grpc/grpc-rust#2428](https://redirect.github.com/hyperium/tonic/pull/2428)
- fix(web): allow space after `:` in `grpc-status` by
[@&#8203;LucioFranco](https://redirect.github.com/LucioFranco) in
[grpc/grpc-rust#2506](https://redirect.github.com/hyperium/tonic/pull/2506)

#### New Contributors

- [@&#8203;r0x0d](https://redirect.github.com/r0x0d) made their first
contribution in
[grpc/grpc-rust#2502](https://redirect.github.com/hyperium/tonic/pull/2502)

**Full Changelog**:
<grpc/grpc-rust@v0.14.3...v0.14.4>

###
[`v0.14.3`](https://redirect.github.com/grpc/grpc-rust/releases/tag/v0.14.3)

[Compare
Source](https://redirect.github.com/grpc/grpc-rust/compare/v0.14.2...v0.14.3)

#### Features

- Expose `tcp_keepalive_interval` and `tcp_keepalive_retries` options on
Server
([#&#8203;2472](https://redirect.github.com/grpc/grpc-rust/issues/2472))
- Allow configuration of `max_local_error_reset_streams` on Server
([#&#8203;2437](https://redirect.github.com/grpc/grpc-rust/issues/2437))
- Put source error into the `Display` impl of `Status`
([#&#8203;2417](https://redirect.github.com/grpc/grpc-rust/issues/2417))
- `Server::default()` now sets `TCP_NODELAY` to true
([#&#8203;2413](https://redirect.github.com/grpc/grpc-rust/issues/2413))

#### Bug Fixes

- Respect `max_message_size` when decompressing a message
([#&#8203;2484](https://redirect.github.com/grpc/grpc-rust/issues/2484))
- Depend on http at least 1.1.0
([#&#8203;2426](https://redirect.github.com/grpc/grpc-rust/issues/2426))

#### Documentation

- Fix documentation links for timeout configuration
([#&#8203;2483](https://redirect.github.com/grpc/grpc-rust/issues/2483))
- Fix documentation typos and grammar issues in status.rs and
codec/mod.rs
([#&#8203;2468](https://redirect.github.com/grpc/grpc-rust/issues/2468))
- Fix labels in `Display for Status`
([#&#8203;2414](https://redirect.github.com/grpc/grpc-rust/issues/2414))
- Fix features docs in tonic-build and tonic-prost-build
([#&#8203;2434](https://redirect.github.com/grpc/grpc-rust/issues/2434))
- Remove redundant word in tonic-build and tonic-prost-build README
([#&#8203;2425](https://redirect.github.com/grpc/grpc-rust/issues/2425))

###
[`v0.14.2`](https://redirect.github.com/grpc/grpc-rust/releases/tag/v0.14.2)

[Compare
Source](https://redirect.github.com/grpc/grpc-rust/compare/v0.14.1...v0.14.2)

#### What's Changed

- Improve `Status` formatting by
[@&#8203;emilk](https://redirect.github.com/emilk) in
[grpc/grpc-rust#2403](https://redirect.github.com/hyperium/tonic/pull/2403)
- Separate out Tls ConnectInfo trait support into separate tls feature
by [@&#8203;xumaple](https://redirect.github.com/xumaple) in
[grpc/grpc-rust#2402](https://redirect.github.com/hyperium/tonic/pull/2402)

#### New Contributors

- [@&#8203;Shaun1](https://redirect.github.com/Shaun1) made their first
contribution in
[grpc/grpc-rust#2385](https://redirect.github.com/hyperium/tonic/pull/2385)
- [@&#8203;emilk](https://redirect.github.com/emilk) made their first
contribution in
[grpc/grpc-rust#2403](https://redirect.github.com/hyperium/tonic/pull/2403)
- [@&#8203;xumaple](https://redirect.github.com/xumaple) made their
first contribution in
[grpc/grpc-rust#2402](https://redirect.github.com/hyperium/tonic/pull/2402)

**Full Changelog**:
<grpc/grpc-rust@v0.14.1...v0.14.2>

###
[`v0.14.1`](https://redirect.github.com/grpc/grpc-rust/releases/tag/v0.14.1)

[Compare
Source](https://redirect.github.com/grpc/grpc-rust/compare/v0.14.0...v0.14.1)

Notable change is to relax the accidental MSRV bump in the last release.

#### What's Changed

- Add `service_generator` method to `Builder` by
[@&#8203;koesie10](https://redirect.github.com/koesie10) in
[grpc/grpc-rust#2364](https://redirect.github.com/hyperium/tonic/pull/2364)
- Improve connection accept error message
[@&#8203;stepancheg](https://redirect.github.com/stepancheg) in
[grpc/grpc-rust#2366](https://redirect.github.com/hyperium/tonic/pull/2366)
- Remove unconditional enable of tonic-build transport feature by
[@&#8203;tottoto](https://redirect.github.com/tottoto) in
[grpc/grpc-rust#2357](https://redirect.github.com/hyperium/tonic/pull/2357)
- chore: relax msrv for most crates by
[@&#8203;acrrd](https://redirect.github.com/acrrd) in
[grpc/grpc-rust#2378](https://redirect.github.com/hyperium/tonic/pull/2378)

#### New Contributors

- [@&#8203;koesie10](https://redirect.github.com/koesie10) made their
first contribution in
[grpc/grpc-rust#2364](https://redirect.github.com/hyperium/tonic/pull/2364)
- [@&#8203;stepancheg](https://redirect.github.com/stepancheg) made
their first contribution in
[grpc/grpc-rust#2366](https://redirect.github.com/hyperium/tonic/pull/2366)
- [@&#8203;acrrd](https://redirect.github.com/acrrd) made their first
contribution in
[grpc/grpc-rust#2378](https://redirect.github.com/hyperium/tonic/pull/2378)

**Full Changelog**:
<grpc/grpc-rust@v0.14.0...v0.14.1>

###
[`v0.14.0`](https://redirect.github.com/grpc/grpc-rust/releases/tag/v0.14.0)

[Compare
Source](https://redirect.github.com/grpc/grpc-rust/compare/v0.13.1...v0.14.0)

This release marks an important milestone for tonic, "hopefully" this
will be the last major breaking release of Tonic before we start to
transition work into bringing the community a joint-effort `grpc-rust`
implementation. For the moment, any new features for the core of tonic
that are not related to the work towards `grpc-rust` will not be
accepted (I believe tonic to be in quite a good spot, security features
of course will be handled with the upmost importance). Stay tuned there
will be more information the coming months on what is going on with the
new project but you can already see some of the code in the `grpc` crate
within the `tonic` repository.

You can always watch [this
video](https://www.youtube.com/watch?v=ux1xoUR9Xm8) for more info on
`grpc-rust`.

#### Breaking Changes

- Prost updated to v0.14
- Prost has been extracted to their own crates

#### Migration guide

To migrate between `<=v0.13.1` to `v0.14` anything that used prost has
now been moved into either `tonic-prost` or `tonic-prost-build`. All the
previous types are still available but under these two new crates.

#### What's Changed

- add support for tower's load-shed layer by
[@&#8203;joeroback](https://redirect.github.com/joeroback) in
[grpc/grpc-rust#2189](https://redirect.github.com/hyperium/tonic/pull/2189)
- Box Status contents to reduce enum size
([#&#8203;2253](https://redirect.github.com/grpc/grpc-rust/issues/2253))
by [@&#8203;tustvold](https://redirect.github.com/tustvold) in
[grpc/grpc-rust#2282](https://redirect.github.com/hyperium/tonic/pull/2282)
- Update to prost 0.14 by
[@&#8203;tottoto](https://redirect.github.com/tottoto) in
[grpc/grpc-rust#2300](https://redirect.github.com/hyperium/tonic/pull/2300)
- Update generated code to `error_details.proto` `a56cbf3b` by
[@&#8203;kriswuollett](https://redirect.github.com/kriswuollett) in
[grpc/grpc-rust#2306](https://redirect.github.com/hyperium/tonic/pull/2306)
- feat(transport): Allow setting TCP_KEEPINTVL and TCP_KEEPCNT by
[@&#8203;xmakro](https://redirect.github.com/xmakro) in
[grpc/grpc-rust#2299](https://redirect.github.com/hyperium/tonic/pull/2299)
- fix(tonic): make `Streaming` `Sync` again by
[@&#8203;Twey](https://redirect.github.com/Twey) in
[grpc/grpc-rust#2293](https://redirect.github.com/hyperium/tonic/pull/2293)
- feat: preserve user-agent header (for real) by
[@&#8203;dbolduc](https://redirect.github.com/dbolduc) in
[grpc/grpc-rust#2290](https://redirect.github.com/hyperium/tonic/pull/2290)
- feat(tls): Add tls handshake timeout support by
[@&#8203;honsunrise](https://redirect.github.com/honsunrise) in
[grpc/grpc-rust#2309](https://redirect.github.com/hyperium/tonic/pull/2309)
- Update socket2 to v0.6 by
[@&#8203;Thomasdezeeuw](https://redirect.github.com/Thomasdezeeuw) in
[grpc/grpc-rust#2329](https://redirect.github.com/hyperium/tonic/pull/2329)
- feat: Extract prost into its own tonic based crates by
[@&#8203;LucioFranco](https://redirect.github.com/LucioFranco) in
[grpc/grpc-rust#2321](https://redirect.github.com/hyperium/tonic/pull/2321)
- feat(build): allow to specify trait attributes by
[@&#8203;ya7on](https://redirect.github.com/ya7on) in
[grpc/grpc-rust#2348](https://redirect.github.com/hyperium/tonic/pull/2348)

#### New Contributors

- [@&#8203;joeroback](https://redirect.github.com/joeroback) made their
first contribution in
[grpc/grpc-rust#2189](https://redirect.github.com/hyperium/tonic/pull/2189)
- [@&#8203;tustvold](https://redirect.github.com/tustvold) made their
first contribution in
[grpc/grpc-rust#2282](https://redirect.github.com/hyperium/tonic/pull/2282)
- [@&#8203;darrasse](https://redirect.github.com/darrasse) made their
first contribution in
[grpc/grpc-rust#2297](https://redirect.github.com/hyperium/tonic/pull/2297)
- [@&#8203;ADSteele916](https://redirect.github.com/ADSteele916) made
their first contribution in
[grpc/grpc-rust#2291](https://redirect.github.com/hyperium/tonic/pull/2291)
- [@&#8203;kriswuollett](https://redirect.github.com/kriswuollett) made
their first contribution in
[grpc/grpc-rust#2306](https://redirect.github.com/hyperium/tonic/pull/2306)
- [@&#8203;xmakro](https://redirect.github.com/xmakro) made their first
contribution in
[grpc/grpc-rust#2299](https://redirect.github.com/hyperium/tonic/pull/2299)
- [@&#8203;Twey](https://redirect.github.com/Twey) made their first
contribution in
[grpc/grpc-rust#2293](https://redirect.github.com/hyperium/tonic/pull/2293)
- [@&#8203;honsunrise](https://redirect.github.com/honsunrise) made
their first contribution in
[grpc/grpc-rust#2309](https://redirect.github.com/hyperium/tonic/pull/2309)
- [@&#8203;CommanderStorm](https://redirect.github.com/CommanderStorm)
made their first contribution in
[grpc/grpc-rust#2308](https://redirect.github.com/hyperium/tonic/pull/2308)
- [@&#8203;ya7on](https://redirect.github.com/ya7on) made their first
contribution in
[grpc/grpc-rust#2348](https://redirect.github.com/hyperium/tonic/pull/2348)

**Full Changelog**:
<grpc/grpc-rust@v0.13.1...v0.14.0>

###
[`v0.13.1`](https://redirect.github.com/grpc/grpc-rust/releases/tag/v0.13.1)

[Compare
Source](https://redirect.github.com/grpc/grpc-rust/compare/v0.13.0...v0.13.1)

#### What's Changed

- Bump `h2` to `v0.4.10` by
[@&#8203;LucioFranco](https://redirect.github.com/LucioFranco)
[grpc/grpc-rust#2263](https://redirect.github.com/hyperium/tonic/pull/2263)
- feat(web): relax bounds for inner service's response body by
[@&#8203;bmwill](https://redirect.github.com/bmwill) in
[grpc/grpc-rust#2245](https://redirect.github.com/hyperium/tonic/pull/2245)
- feat: preserve request user-agent by
[@&#8203;dbolduc](https://redirect.github.com/dbolduc) in
[grpc/grpc-rust#2250](https://redirect.github.com/hyperium/tonic/pull/2250)
- feat(server): Add method to get local addr to TcpIncoming by
[@&#8203;tottoto](https://redirect.github.com/tottoto) in
[grpc/grpc-rust#2233](https://redirect.github.com/hyperium/tonic/pull/2233)
- feat: Expose Status as a Response extension by
[@&#8203;tamasfe](https://redirect.github.com/tamasfe) in
[grpc/grpc-rust#2145](https://redirect.github.com/hyperium/tonic/pull/2145)
- fix: tls config overwrite in endpoint by
[@&#8203;vigneshs-12](https://redirect.github.com/vigneshs-12) in
[grpc/grpc-rust#2252](https://redirect.github.com/hyperium/tonic/pull/2252)
- feat: expose creation of HealthService and HealthReporter by
[@&#8203;LeonHartley](https://redirect.github.com/LeonHartley) in
[grpc/grpc-rust#2251](https://redirect.github.com/hyperium/tonic/pull/2251)

#### New Contributors

- [@&#8203;dbolduc](https://redirect.github.com/dbolduc) made their
first contribution in
[grpc/grpc-rust#2250](https://redirect.github.com/hyperium/tonic/pull/2250)
- [@&#8203;tamasfe](https://redirect.github.com/tamasfe) made their
first contribution in
[grpc/grpc-rust#2145](https://redirect.github.com/hyperium/tonic/pull/2145)
- [@&#8203;vigneshs-12](https://redirect.github.com/vigneshs-12) made
their first contribution in
[grpc/grpc-rust#2252](https://redirect.github.com/hyperium/tonic/pull/2252)
- [@&#8203;rafaeling](https://redirect.github.com/rafaeling) made their
first contribution in
[grpc/grpc-rust#2207](https://redirect.github.com/hyperium/tonic/pull/2207)
- [@&#8203;LeonHartley](https://redirect.github.com/LeonHartley) made
their first contribution in
[grpc/grpc-rust#2251](https://redirect.github.com/hyperium/tonic/pull/2251)

**Full Changelog**:
<grpc/grpc-rust@v0.13.0...v0.13.1>

###
[`v0.13.0`](https://redirect.github.com/grpc/grpc-rust/blob/HEAD/CHANGELOG.md#NOTE-ths-changelog-is-no-longer-used-and-from-version-v0130-onward-we-will-be-using-github-releases-and-the-changes-can-be-found-here-)

[Compare
Source](https://redirect.github.com/grpc/grpc-rust/compare/v0.12.3...v0.13.0)

</details>

---

### Configuration

📅 **Schedule**: (UTC)

- Branch creation
  - At any time (no schedule defined)
- Automerge
  - At any time (no schedule defined)

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/OhataKenji/zeal).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4yMjAuMCIsInVwZGF0ZWRJblZlciI6IjQ0LjIyMC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: OhataKenji <[email protected]>
Co-authored-by: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants