Span Count • Rust AI Agent SDK

span_count: Get span count.

span_count

Method

</div>

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

Get span count.

Signature

python
def span_count(&self) -> usize

Returns

ResponseField usize

The result of the operation.