SpanSetAttributeMessage

Type Alias SpanSetAttributeMessage 

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

Span set attribute message with transient values (supports format_args!).

Aliased Type§

pub struct SpanSetAttributeMessage<'a> {
    pub span_id: Option<SpanId>,
    pub attribute: KeyValue<'a, Transient>,
}

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<'a, Transient>

The attribute being set.