pub struct StartedRootTurnSpan {
pub span: BoxedSpan,
pub trace_id_hex: String,
pub span_id_hex: String,
}Available on crate feature
otel only.Expand description
A started root-turn span plus the hex ids the worker persists so the turn’s later tasks can re-parent their spans under it.
Fields§
§span: BoxedSpanThe live invoke_agent span. The worker holds it for the fresh
segment, finishing it with finish_root_turn_span on a
text-only terminal or letting it end on drop when the turn
suspends for tools.
trace_id_hex: StringHex-encoded TraceId — persist to
agent_sdk_turn_attempts.otel_trace_id.
span_id_hex: StringHex-encoded root SpanId — persist to
agent_sdk_turn_attempts.otel_span_id.
Auto Trait Implementations§
impl !RefUnwindSafe for StartedRootTurnSpan
impl !UnwindSafe for StartedRootTurnSpan
impl Freeze for StartedRootTurnSpan
impl Send for StartedRootTurnSpan
impl Sync for StartedRootTurnSpan
impl Unpin for StartedRootTurnSpan
impl UnsafeUnpin for StartedRootTurnSpan
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more