pub struct StructuredMakeSpan { /* private fields */ }Expand description
Span maker that records service, request, route, and trace context fields.
The span includes service.name, service.version,
deployment.environment, request.id, trace.id, http.method,
http.route, and http.target. Request ID and trace ID are read from
x-request-id and traceparent headers respectively; use the request ID
middleware before tracing when you need every request span to have an ID.
Implementations§
Source§impl StructuredMakeSpan
impl StructuredMakeSpan
Sourcepub fn new(config: LoggingConfig) -> Self
pub fn new(config: LoggingConfig) -> Self
Creates a structured HTTP span maker.
Trait Implementations§
Source§impl Clone for StructuredMakeSpan
impl Clone for StructuredMakeSpan
Source§fn clone(&self) -> StructuredMakeSpan
fn clone(&self) -> StructuredMakeSpan
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 StructuredMakeSpan
impl Debug for StructuredMakeSpan
Auto Trait Implementations§
impl Freeze for StructuredMakeSpan
impl RefUnwindSafe for StructuredMakeSpan
impl Send for StructuredMakeSpan
impl Sync for StructuredMakeSpan
impl Unpin for StructuredMakeSpan
impl UnsafeUnpin for StructuredMakeSpan
impl UnwindSafe for StructuredMakeSpan
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