SpanAddEventMessage

Type Alias SpanAddEventMessage 

pub type SpanAddEventMessage<'a> = SpanAddEventMessage<'a, Transient>;
Expand description

Span add event message with transient values (supports format_args!).

Aliased Type§

pub struct SpanAddEventMessage<'a> {
    pub span_id: Option<SpanId>,
    pub name: &'a str,
    pub time_unix_nano: u64,
    pub attributes: &'a [KeyValue<'a, Transient>],
}

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: &'a str

The name of the event.

§time_unix_nano: u64

Timestamp when the event occurred.

§attributes: &'a [KeyValue<'a, Transient>]

Attributes providing additional context for the event.