Set Attribute • Rust AI Agent SDK
set_attribute: Set attribute on current span.
set_attribute
Method
</div>
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
ParamField
impl Into<String>No description available.
ParamField
impl SerializeNo description available.
Returns
ResponseField
()The result of the operation.