spans • Rust AI Agent SDK

spans: Get all spans.

spans

Method

</div>

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

Get all spans.

Signature

python
def spans(&self) -> &[Span]

Returns

ResponseField &[Span]

The result of the operation.