pub struct CaptureHttpAttemptTelemetry { /* private fields */ }Available on crate feature
client only.Expand description
Shared request extension used to capture HTTP-attempt telemetry.
Each observation is recorded at most once. Acquisition timing and selected connection metadata are committed together.
Implementations§
Source§impl CaptureHttpAttemptTelemetry
impl CaptureHttpAttemptTelemetry
Sourcepub fn get(&self) -> HttpAttemptTelemetry
pub fn get(&self) -> HttpAttemptTelemetry
Returns the observations recorded so far.
Sourcepub fn record_connector_call_duration(&self, duration: Duration) -> bool
pub fn record_connector_call_duration(&self, duration: Duration) -> bool
Records the complete HTTP connector call duration.
Returns true when this call recorded the value.
Sourcepub fn record_connection_selection(
&self,
acquisition: ConnectionAcquisitionTelemetry,
connection: ConnectionMetadata,
) -> bool
pub fn record_connection_selection( &self, acquisition: ConnectionAcquisitionTelemetry, connection: ConnectionMetadata, ) -> bool
Records the connection selection that accepted the request.
Acquisition and connection metadata are committed together. Returns
true when this call recorded the selection.
Trait Implementations§
Source§impl Clone for CaptureHttpAttemptTelemetry
impl Clone for CaptureHttpAttemptTelemetry
Source§impl Debug for CaptureHttpAttemptTelemetry
impl Debug for CaptureHttpAttemptTelemetry
Source§impl Storable for CaptureHttpAttemptTelemetry
impl Storable for CaptureHttpAttemptTelemetry
Source§type Storer = StoreReplace<CaptureHttpAttemptTelemetry>
type Storer = StoreReplace<CaptureHttpAttemptTelemetry>
Specify how an item is stored in the config bag, e.g.
StoreReplace and StoreAppendAuto Trait Implementations§
impl Freeze for CaptureHttpAttemptTelemetry
impl RefUnwindSafe for CaptureHttpAttemptTelemetry
impl Send for CaptureHttpAttemptTelemetry
impl Sync for CaptureHttpAttemptTelemetry
impl Unpin for CaptureHttpAttemptTelemetry
impl UnsafeUnpin for CaptureHttpAttemptTelemetry
impl UnwindSafe for CaptureHttpAttemptTelemetry
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.