pub struct RequestHandle<'a> { /* private fields */ }Expand description
Instrumentation-facing request handle.
Implementations§
Source§impl RequestHandle<'_>
impl RequestHandle<'_>
Sourcepub fn request_id(&self) -> &str
pub fn request_id(&self) -> &str
Returns the stable request ID for this request lifecycle.
Sourcepub fn queue(&self, queue: impl Into<String>) -> QueueTimer<'_>
pub fn queue(&self, queue: impl Into<String>) -> QueueTimer<'_>
Starts queue-wait timing instrumentation for queue.
Sourcepub fn stage(&self, stage: impl Into<String>) -> StageTimer<'_>
pub fn stage(&self, stage: impl Into<String>) -> StageTimer<'_>
Starts stage timing instrumentation for stage.
Sourcepub fn inflight(&self, gauge: impl Into<String>) -> InflightGuard<'_>
pub fn inflight(&self, gauge: impl Into<String>) -> InflightGuard<'_>
Increments in-flight gauge tracking for gauge until the returned guard drops.
Trait Implementations§
Source§impl<'a> Clone for RequestHandle<'a>
impl<'a> Clone for RequestHandle<'a>
Source§fn clone(&self) -> RequestHandle<'a>
fn clone(&self) -> RequestHandle<'a>
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<'a> Freeze for RequestHandle<'a>
impl<'a> !RefUnwindSafe for RequestHandle<'a>
impl<'a> Send for RequestHandle<'a>
impl<'a> Sync for RequestHandle<'a>
impl<'a> Unpin for RequestHandle<'a>
impl<'a> UnsafeUnpin for RequestHandle<'a>
impl<'a> !UnwindSafe for RequestHandle<'a>
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