new • Rust AI Agent SDK

new: Create a new event.

new

Method

</div>

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

Create a new event.

Signature

python
def new(name: impl Into<String>, timestamp: Duration) -> Self

Parameters

ParamField impl Into&lt;String&gt;

No description available.

ParamField Duration

No description available.

Returns

ResponseField Self

The result of the operation.