SpanAddEventMessage

Type Alias SpanAddEventMessage 

pub type SpanAddEventMessage = SpanAddEventMessage<'static, Owned>;
Available on crate feature alloc only.
Expand description

Span add event message with owned values (Send-safe, for IPC).

Aliased Type§

pub struct SpanAddEventMessage {
    pub span_id: Option<SpanId>,
    pub name: String,
    pub time_unix_nano: u64,
    pub attributes: Vec<KeyValue<'static, Owned>>,
}

Fields§

§span_id: Option<SpanId>

The span the event is being added to, if None then this applies to the “current span” as determined by tracking SpanEnterMessage and SpanExitMessage pairs.

§name: String

The name of the event.

§time_unix_nano: u64

Timestamp when the event occurred.

§attributes: Vec<KeyValue<'static, Owned>>

Attributes providing additional context for the event.