Skip to main content

set_attribute

Method
This is a method of the TraceContext class in the trace module.
Set attribute on current span.

Signature

def set_attribute(&mut self, key: impl Into<String>, value: impl Serialize) -> ()

Parameters

key
impl Into<String>
required
No description available.
value
impl Serialize
required
No description available.

Returns

Returns
()
The result of the operation.