pub struct Span {Show 18 fields
pub kind: SourceKind,
pub resource_key: ResourceKey,
pub id: FullSpanId,
pub created_at: Timestamp,
pub closed_at: Option<Timestamp>,
pub busy: Option<u64>,
pub parent_id: Option<FullSpanId>,
pub parent_key: Option<SpanKey>,
pub links: Vec<(FullSpanId, BTreeMap<String, Value>)>,
pub name: String,
pub namespace: Option<String>,
pub function: Option<String>,
pub level: Level,
pub file_name: Option<String>,
pub file_line: Option<u32>,
pub file_column: Option<u32>,
pub instrumentation_attributes: BTreeMap<String, Value>,
pub attributes: BTreeMap<String, Value>,
}
Fields§
§kind: SourceKind
§resource_key: ResourceKey
§id: FullSpanId
§created_at: Timestamp
§closed_at: Option<Timestamp>
§busy: Option<u64>
§parent_id: Option<FullSpanId>
§parent_key: Option<SpanKey>
§links: Vec<(FullSpanId, BTreeMap<String, Value>)>
§name: String
§namespace: Option<String>
§function: Option<String>
§level: Level
§file_name: Option<String>
§file_line: Option<u32>
§file_column: Option<u32>
§instrumentation_attributes: BTreeMap<String, Value>
§attributes: BTreeMap<String, Value>
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Span
impl RefUnwindSafe for Span
impl Send for Span
impl Sync for Span
impl Unpin for Span
impl UnwindSafe for Span
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