pub struct TraceContext {
pub trace_id: TraceId,
pub span_id: SpanId,
pub sampled: bool,
}Expand description
The trace and span a log line belongs to.
Fields§
§trace_id: TraceIdThe trace the line happened in.
span_id: SpanIdThe span the line happened in.
sampled: boolWhether the trace is sampled.
Trait Implementations§
Source§impl Clone for TraceContext
impl Clone for TraceContext
impl Copy for TraceContext
Source§impl Debug for TraceContext
impl Debug for TraceContext
impl Eq for TraceContext
Source§impl PartialEq for TraceContext
impl PartialEq for TraceContext
impl StructuralPartialEq for TraceContext
Auto Trait Implementations§
impl Forget for TraceContext
impl Freeze for TraceContext
impl Move for TraceContext
impl RefUnwindSafe for TraceContext
impl Send for TraceContext
impl Sync for TraceContext
impl Unpin for TraceContext
impl UnsafeUnpin for TraceContext
impl UnwindSafe for TraceContext
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