pub struct StandardHttpRetryLifecycle { /* private fields */ }Expand description
A standard HTTP retry lifecycle that emits contextual information about HTTP requests and responses..
This lifecycle emits user-friendly logs about retry attempts, including the request URI and response code. It provides additional destructuring/introspection of errors to surface contextual information such as requests failing due to DNS, connection errors, TLS, and so on.
The same categorization drives telemetry when RetryCauseTelemetry is attached with
with_telemetry, so the logs and the metrics can’t disagree about why a request was
retried.
Implementations§
Source§impl StandardHttpRetryLifecycle
impl StandardHttpRetryLifecycle
Sourcepub fn with_telemetry(self, telemetry: RetryCauseTelemetry) -> Self
pub fn with_telemetry(self, telemetry: RetryCauseTelemetry) -> Self
Counts retries by cause, in addition to logging them.
Trait Implementations§
Source§impl Clone for StandardHttpRetryLifecycle
impl Clone for StandardHttpRetryLifecycle
Source§fn clone(&self) -> StandardHttpRetryLifecycle
fn clone(&self) -> StandardHttpRetryLifecycle
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 moreSource§impl Default for StandardHttpRetryLifecycle
impl Default for StandardHttpRetryLifecycle
Source§fn default() -> StandardHttpRetryLifecycle
fn default() -> StandardHttpRetryLifecycle
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StandardHttpRetryLifecycle
impl RefUnwindSafe for StandardHttpRetryLifecycle
impl Send for StandardHttpRetryLifecycle
impl Sync for StandardHttpRetryLifecycle
impl Unpin for StandardHttpRetryLifecycle
impl UnwindSafe for StandardHttpRetryLifecycle
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