pub struct InstrumentedTask<F> { /* private fields */ }Expand description
An instrumented task future.
This wraps a Future and emits telemetry about the duration of each poll operation.
Trait Implementations§
Source§impl<F> Future for InstrumentedTask<F>where
F: Future,
impl<F> Future for InstrumentedTask<F>where
F: Future,
impl<'pin, F> Unpin for InstrumentedTask<F>where
PinnedFieldsOf<__InstrumentedTask<'pin, F>>: Unpin,
Auto Trait Implementations§
impl<F> Freeze for InstrumentedTask<F>where
F: Freeze,
impl<F> !RefUnwindSafe for InstrumentedTask<F>
impl<F> Send for InstrumentedTask<F>where
F: Send,
impl<F> Sync for InstrumentedTask<F>where
F: Sync,
impl<F> !UnwindSafe for InstrumentedTask<F>
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> 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<F> IntoFuture for Fwhere
F: Future,
impl<F> IntoFuture for Fwhere
F: Future,
Source§type IntoFuture = F
type IntoFuture = F
Which kind of future are we turning this into?
Source§fn into_future(self) -> <F as IntoFuture>::IntoFuture
fn into_future(self) -> <F as IntoFuture>::IntoFuture
Creates a future from a value. Read more
Source§impl<F> TaskInstrument for F
impl<F> TaskInstrument for F
Source§fn with_task_instrumentation(self, task_name: String) -> InstrumentedTask<F> ⓘ
fn with_task_instrumentation(self, task_name: String) -> InstrumentedTask<F> ⓘ
Instruments the future, tracking task-specific metrics about its execution. Read more
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 more