With Attribute • Rust AI Agent SDK
with_attribute: Add an attribute.
with_attribute
Method
</div>
This is a method of the SpanEvent class in the trace module.
Add an attribute.
Signature
def with_attribute(mut self, key: impl Into<String>, value: impl Serialize) -> SelfParameters
ParamField
impl Into<String>No description available.
ParamField
impl SerializeNo description available.
Returns
ResponseField
SelfThe result of the operation.