new • Rust AI Agent SDK

new: Create a new span.

new

Method

</div>

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

Create a new span.

Signature

python
def new(
        trace_id: impl Into<String>,
        name: impl Into<String>,
        kind: SpanKind,
        start_offset: Duration,
    ) -> Self

Parameters

ParamField impl Into&lt;String&gt;

No description available.

ParamField impl Into&lt;String&gt;

No description available.

ParamField SpanKind

No description available.

ParamField Duration

No description available.

Returns

ResponseField Self

The result of the operation.