Struct tower_http::trace::DefaultMakeSpan
source · pub struct DefaultMakeSpan { /* private fields */ }
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 Freeze for DefaultMakeSpan
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)