Add Event • Rust AI Agent SDK

add_event: Add event to current span.

add_event

Method

</div>

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

Add event to current span.

Signature

python
def add_event(&mut self, name: impl Into<String>) -> ()

Parameters

ParamField impl Into&lt;String&gt;

No description available.

Returns

ResponseField ()

The result of the operation.