Start Span • Rust AI Agent SDK

start_span: Start a new span.

start_span

Method

</div>

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

Start a new span.

Signature

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

Parameters

ParamField impl Into&lt;String&gt;

No description available.

ParamField SpanKind

No description available.

Returns

ResponseField String

The result of the operation.