pub trait InstrumentHttpClient {
type Output;
// Required method
fn instrument_http(self, label: Option<String>) -> Self::Output;
}Expand description
Wraps an HTTP client so every request it sends is timed and reported.
Implemented for reqwest::Client (per enabled reqwest generation), where
the concrete client type routes to the matching reqwest-middleware
wrapper, and for ureq’s ConfigBuilder<AgentScope>, which is returned with
the middleware appended.
Required Associated Types§
Required Methods§
fn instrument_http(self, label: Option<String>) -> Self::Output
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".