pub struct TraceLayer { /* private fields */ }Expand description
Middleware that continues or starts a W3C trace
Implementations§
Source§impl TraceLayer
impl TraceLayer
pub fn new() -> Self
Sourcepub fn ignore_incoming(self) -> Self
pub fn ignore_incoming(self) -> Self
Always start a new trace, whatever the caller sent (public edge)
Sourcepub fn echo_response(self) -> Self
pub fn echo_response(self) -> Self
Return this request’s traceparent in the response so callers can
find the trace of a request they made
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TraceLayer
impl RefUnwindSafe for TraceLayer
impl Send for TraceLayer
impl Sync for TraceLayer
impl Unpin for TraceLayer
impl UnsafeUnpin for TraceLayer
impl UnwindSafe for TraceLayer
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