Struct tower_http::trace::DefaultOnRequest
source · pub struct DefaultOnRequest { /* private fields */ }
Available on crate feature
trace
only.Implementations§
source§impl DefaultOnRequest
impl DefaultOnRequest
sourcepub fn level(self, level: Level) -> Self
pub fn level(self, level: Level) -> Self
Set the Level
used for tracing events.
Please note that while this will set the level for the tracing events
themselves, it might cause them to lack expected information, like
request method or path. You can address this using
DefaultMakeSpan::level
.
Defaults to Level::DEBUG
.
Trait Implementations§
source§impl Clone for DefaultOnRequest
impl Clone for DefaultOnRequest
source§fn clone(&self) -> DefaultOnRequest
fn clone(&self) -> DefaultOnRequest
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more