pub struct TracingMiddleware { /* private fields */ }
Expand description
Framework tracing middleware for HTTP requests
Implementations§
Source§impl TracingMiddleware
impl TracingMiddleware
Sourcepub fn with_config(config: TracingConfig) -> Self
pub fn with_config(config: TracingConfig) -> Self
Create tracing middleware with custom configuration
Sourcepub fn with_body_tracing(self) -> Self
pub fn with_body_tracing(self) -> Self
Enable body tracing
Sourcepub fn with_level(self, level: Level) -> Self
pub fn with_level(self, level: Level) -> Self
Set tracing level
Trait Implementations§
Source§impl Debug for TracingMiddleware
impl Debug for TracingMiddleware
Source§impl Default for TracingMiddleware
impl Default for TracingMiddleware
Source§impl Middleware for TracingMiddleware
impl Middleware for TracingMiddleware
Source§fn handle(&self, request: ElifRequest, next: Next) -> NextFuture<'static>
fn handle(&self, request: ElifRequest, next: Next) -> NextFuture<'static>
Handle the request and call the next middleware in the chain
Auto Trait Implementations§
impl Freeze for TracingMiddleware
impl RefUnwindSafe for TracingMiddleware
impl Send for TracingMiddleware
impl Sync for TracingMiddleware
impl Unpin 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