Set Attribute • Rust AI Agent SDK

set_attribute: Add an attribute.

set_attribute

Method

</div>

This is a method of the Span class in the trace module.

Add an attribute.

Signature

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

Parameters

ParamField impl Into&lt;String&gt;

No description available.

ParamField impl Serialize

No description available.

Returns

ResponseField ()

The result of the operation.