pub struct OwnedRequestHandle { /* private fields */ }Expand description
Instrumentation-facing request handle backed by Arc<Tailtriage>.
Implementations§
Source§impl OwnedRequestHandle
impl OwnedRequestHandle
Sourcepub fn request_id(&self) -> &str
pub fn request_id(&self) -> &str
Correlation ID attached to this request.
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<'_>
Creates an in-flight guard for gauge.
Trait Implementations§
Source§impl Clone for OwnedRequestHandle
impl Clone for OwnedRequestHandle
Source§fn clone(&self) -> OwnedRequestHandle
fn clone(&self) -> OwnedRequestHandle
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 OwnedRequestHandle
impl !RefUnwindSafe for OwnedRequestHandle
impl Send for OwnedRequestHandle
impl Sync for OwnedRequestHandle
impl Unpin for OwnedRequestHandle
impl UnsafeUnpin for OwnedRequestHandle
impl !UnwindSafe for OwnedRequestHandle
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