With Parent • Rust AI Agent SDK

with_parent: Set parent span.

with_parent

Method

</div>

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

Set parent span.

Signature

python
def with_parent(mut self, parent_id: impl Into<String>) -> Self

Parameters

ParamField impl Into&lt;String&gt;

No description available.

Returns

ResponseField Self

The result of the operation.