pub struct SpanRefV1 {
pub name: String,
pub trace_id: String,
pub span_id: String,
pub parent_span_id: Option<String>,
pub fields: Map<String, Value>,
}Expand description
A tracing span reference captured at the time a LogEventV1 is emitted.
Spans are snapshots of the active tracing span chain; they are not live
handles. The name field contains the span name and fields contains the
span’s recorded key-value pairs at the time of capture.
Fields§
§name: StringSpan name (e.g. "daemon_dispatch").
trace_id: StringDistributed trace ID for this span.
span_id: StringSpan ID.
parent_span_id: Option<String>Parent span ID (None for root span).
fields: Map<String, Value>Span fields recorded at capture time.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SpanRefV1
impl<'de> Deserialize<'de> for SpanRefV1
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SpanRefV1, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SpanRefV1, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for SpanRefV1
impl Serialize for SpanRefV1
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for SpanRefV1
Auto Trait Implementations§
impl Freeze for SpanRefV1
impl RefUnwindSafe for SpanRefV1
impl Send for SpanRefV1
impl Sync for SpanRefV1
impl Unpin for SpanRefV1
impl UnsafeUnpin for SpanRefV1
impl UnwindSafe for SpanRefV1
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