Struct tower_http::trace::DefaultMakeSpan
source · pub struct DefaultMakeSpan { /* private fields */ }
Available on crate feature
trace
only.Implementations§
source§impl DefaultMakeSpan
impl DefaultMakeSpan
sourcepub fn level(self, level: Level) -> Self
pub fn level(self, level: Level) -> Self
Set the Level
used for the tracing span.
Defaults to Level::DEBUG
.
sourcepub fn include_headers(self, include_headers: bool) -> Self
pub fn include_headers(self, include_headers: bool) -> Self
Include request headers on the Span
.
By default headers are not included.
Trait Implementations§
source§impl Clone for DefaultMakeSpan
impl Clone for DefaultMakeSpan
source§fn clone(&self) -> DefaultMakeSpan
fn clone(&self) -> DefaultMakeSpan
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