Struct sc_tracing::SpanDatum
source · [−]pub struct SpanDatum {
pub id: Id,
pub parent_id: Option<Id>,
pub name: String,
pub target: String,
pub level: Level,
pub line: u32,
pub start_time: Instant,
pub overall_time: Duration,
pub values: Values,
}
Expand description
Represents a single instance of a tracing span
Fields
id: Id
id for this span
parent_id: Option<Id>
id of the parent span, if any
name: String
Name of this span
target: String
Target, typically module
level: Level
Tracing Level - ERROR, WARN, INFO, DEBUG or TRACE
line: u32
Line number in source
start_time: Instant
Time that the span was last entered
overall_time: Duration
Total duration of span while entered
values: Values
Values recorded to this span
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for SpanDatum
impl Send for SpanDatum
impl Sync for SpanDatum
impl Unpin for SpanDatum
impl UnwindSafe for SpanDatum
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more