pub struct Trace(/* private fields */);Expand description
The trace ID of the last credential selected for a request.
Implementations§
Source§impl Trace
impl Trace
Sourcepub fn with_request_id(id: Option<String>) -> Self
pub fn with_request_id(id: Option<String>) -> Self
Uses the HTTP middleware identity; absent identity keeps internal execution’s lazy UUID generation. Capture this before spawning background work.
Sourcepub fn request_id(&self) -> String
pub fn request_id(&self) -> String
The request ID (Go logging.GetRequestID), created on first use.
Sourcepub fn with_capture(self, capture: CaptureSink) -> Self
pub fn with_capture(self, capture: CaptureSink) -> Self
Connection-owned transports pass their capture explicitly after leaving middleware task scope, along with the same middleware request ID.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Trace
impl !RefUnwindSafe for Trace
impl !UnwindSafe for Trace
impl Forget for Trace
impl Move for Trace
impl Send for Trace
impl Sync for Trace
impl Unpin for Trace
impl UnsafeUnpin for Trace
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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 more