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

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

Parameters

ParamField impl Into&lt;String&gt;

No description available.

ParamField impl Serialize

No description available.

Returns

ResponseField Self

The result of the operation.