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

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.