SpanSetAttributeMessage

Type Alias SpanSetAttributeMessage 

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

Span set attribute message with owned values (Send-safe, for IPC).

Aliased Type§

pub struct SpanSetAttributeMessage {
    pub span_id: Option<SpanId>,
    pub attribute: KeyValue<'static, Owned>,
}

Fields§

§span_id: Option<SpanId>

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

§attribute: KeyValue<'static, Owned>

The attribute being set.