pub struct Tailtriage { /* private fields */ }Expand description
Per-run collector that records request events and writes the final artifact.
Implementations§
Source§impl Tailtriage
impl Tailtriage
Sourcepub fn builder(service_name: impl Into<String>) -> TailtriageBuilder
pub fn builder(service_name: impl Into<String>) -> TailtriageBuilder
Creates a builder-based setup path for one service run.
Sourcepub fn begin_request(&self, route: impl Into<String>) -> StartedRequest<'_>
pub fn begin_request(&self, route: impl Into<String>) -> StartedRequest<'_>
Starts a request with autogenerated correlation for route.
Sourcepub fn begin_request_with(
&self,
route: impl Into<String>,
options: RequestOptions,
) -> StartedRequest<'_>
pub fn begin_request_with( &self, route: impl Into<String>, options: RequestOptions, ) -> StartedRequest<'_>
Starts a request with optional caller-provided request options.
Sourcepub fn begin_request_owned(
self: &Arc<Self>,
route: impl Into<String>,
) -> OwnedStartedRequest
pub fn begin_request_owned( self: &Arc<Self>, route: impl Into<String>, ) -> OwnedStartedRequest
Starts a request with autogenerated correlation for route using Arc<Tailtriage>.
Sourcepub fn begin_request_with_owned(
self: &Arc<Self>,
route: impl Into<String>,
options: RequestOptions,
) -> OwnedStartedRequest
pub fn begin_request_with_owned( self: &Arc<Self>, route: impl Into<String>, options: RequestOptions, ) -> OwnedStartedRequest
Starts a request with caller-provided options using Arc<Tailtriage>.
Sourcepub fn record_runtime_snapshot(&self, snapshot: RuntimeSnapshot)
pub fn record_runtime_snapshot(&self, snapshot: RuntimeSnapshot)
Records one runtime metrics sample captured by an integration crate.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Tailtriage
impl !RefUnwindSafe for Tailtriage
impl Send for Tailtriage
impl Sync for Tailtriage
impl Unpin for Tailtriage
impl UnsafeUnpin for Tailtriage
impl !UnwindSafe for Tailtriage
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