pub struct TracingMiddleware;Expand description
Built-in middleware that wraps each job execution in a tracing span
carrying job.id, job.method, job.queue, and job.attempt.
Installed implicitly by JobProcessor as the
outermost layer so every worker execution gets a structured span for
free. Users can opt out by constructing their middleware stack manually
(the processor’s implicit install is a convenience, not a requirement).
Trait Implementations§
Source§impl JobMiddleware for TracingMiddleware
impl JobMiddleware for TracingMiddleware
Auto Trait Implementations§
impl Freeze for TracingMiddleware
impl RefUnwindSafe for TracingMiddleware
impl Send for TracingMiddleware
impl Sync for TracingMiddleware
impl Unpin for TracingMiddleware
impl UnsafeUnpin for TracingMiddleware
impl UnwindSafe for TracingMiddleware
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