hyper-util: expose connection info on whether it's reused from the pool or newly established #3727
Labels
A-client
Area: client.
C-feature
Category: feature. This is adding a new feature.
E-medium
Effort: medium. Some knowledge of how hyper internal works would be useful.
K-hyper-util
Crate: hyper-util
Is your feature request related to a problem? Please describe.
While investigating hard-to-debug connection related issues in cloud infra, we will likely want to obtain any kind of information that might be relevant. Even whether a connection that has just failed is reused from the connection pool or is newly established can be a valuable insight that we could use to troubleshoot.
Describe the solution you'd like
Maybe add a new private field to the
hyper_util::client::legacy::connect::HttpInfo
, likeis_new_connection
(oris_reused_connection
) and make it publicly accessible via a method?Describe alternatives you've considered
I didn't come up with other alternatives
Additional context
N/A
The text was updated successfully, but these errors were encountered: