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 moresource§impl Debug for DefaultMakeSpan
impl Debug for DefaultMakeSpan
source§impl Default for DefaultMakeSpan
impl Default for DefaultMakeSpan
Auto Trait Implementations§
impl RefUnwindSafe for DefaultMakeSpan
impl Send for DefaultMakeSpan
impl Sync for DefaultMakeSpan
impl Unpin for DefaultMakeSpan
impl UnwindSafe for DefaultMakeSpan
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