pub struct RetryCauseTelemetry { /* private fields */ }Expand description
Counts retried requests by what caused the retry.
Attach this to StandardHttpRetryLifecycle to count retries as they’re decided,
at the point where the response or the error that triggered them is still available.
§Metrics
network_http_requests_retry_causes_total: the total number of retried requests, tagged with thedomaingiven at construction and with a bounded description of the failure:cause: one ofhttp_status,http2,tls,timeout,connection,client, orother.frameandinitiator: forcause:http2only.frameis the HTTP/2 frame the error came from, andinitiatoris the side of the connection that sent it, wherelocalmeans this client ended the request rather than the remote endpoint.reason: forcause:http2, the HTTP/2 reason code by name; forcause:timeout, the stage that timed out; forcause:connection, the kind of transport failure. Absent when the failure carries no reason we recognize.
Retries caused by response status codes aren’t broken down by code here, since
network_http_requests_errors_total already counts every non-success response by status code.
Implementations§
Source§impl RetryCauseTelemetry
impl RetryCauseTelemetry
Sourcepub fn from_builder(builder: &MetricsBuilder, domain: &str) -> Self
pub fn from_builder(builder: &MetricsBuilder, domain: &str) -> Self
Creates retry cause telemetry for requests sent to domain.
The domain is used as-is for the domain tag, so pass the same value that the rest of a client’s telemetry uses:
the scheme, host, and port of the remote endpoint.
Trait Implementations§
Source§impl Clone for RetryCauseTelemetry
impl Clone for RetryCauseTelemetry
Source§fn clone(&self) -> RetryCauseTelemetry
fn clone(&self) -> RetryCauseTelemetry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RetryCauseTelemetry
impl RefUnwindSafe for RetryCauseTelemetry
impl Send for RetryCauseTelemetry
impl Sync for RetryCauseTelemetry
impl Unpin for RetryCauseTelemetry
impl UnwindSafe for RetryCauseTelemetry
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::RequestSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> Track for T
impl<T> Track for T
Source§fn track_resources(self, token: ResourceGroupToken) -> Tracked<Self>
fn track_resources(self, token: ResourceGroupToken) -> Tracked<Self>
Instruments this type by attaching the given resource group token, returning a
Tracked wrapper. Read moreSource§fn in_current_resource_group(self) -> Tracked<Self>
fn in_current_resource_group(self) -> Tracked<Self>
Instruments this type by attaching the current resource group, returning a
Tracked wrapper. Read more