pub struct SpanRecord {
pub trace_id: String,
pub span_id: String,
pub parent_span_id: Option<String>,
pub name: &'static str,
pub target: &'static str,
pub start_unix_nanos: u64,
pub end_unix_nanos: u64,
pub attributes: BTreeMap<String, Value>,
pub kind: SpanKind,
pub status: SpanStatus,
}Available on crate feature
tracing-layer only.Expand description
A closed span, as handed to a SpanSink.
Fields§
§trace_id: String32 lowercase hex characters, shared by every span in the trace.
span_id: String16 lowercase hex characters.
parent_span_id: Option<String>The enclosing span’s id; None for a root span.
name: &'static strThe span’s name, as given to tracing::span!.
target: &'static strThe span’s target (usually its module path).
start_unix_nanos: u64Wall-clock creation time, nanoseconds since the Unix epoch.
end_unix_nanos: u64Wall-clock close time, nanoseconds since the Unix epoch.
attributes: BTreeMap<String, Value>The span’s fields, after Scrub.
kind: SpanKindThe span’s role in the trace.
status: SpanStatusHow the span ended.
Trait Implementations§
Source§impl Clone for SpanRecord
impl Clone for SpanRecord
Source§impl Debug for SpanRecord
impl Debug for SpanRecord
impl Eq for SpanRecord
Source§impl PartialEq for SpanRecord
impl PartialEq for SpanRecord
impl StructuralPartialEq for SpanRecord
Auto Trait Implementations§
impl Forget for SpanRecord
impl Freeze for SpanRecord
impl Move for SpanRecord
impl RefUnwindSafe for SpanRecord
impl Send for SpanRecord
impl Sync for SpanRecord
impl Unpin for SpanRecord
impl UnsafeUnpin for SpanRecord
impl UnwindSafe for SpanRecord
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