Module spans

Module spans 

Source
Expand description

OpenTelemetry span definitions for agent lifecycle operations.

Each span carries contextual fields for agent-level correlation.

Functions§

agent_run_span
Create a span for an agent’s run lifecycle.
agent_tool_span
Create a span for an agent-as-tool invocation.
agent_transfer_span
Create a span for an agent transfer.
call_llm_span
Create a span for an LLM generate call.
chat_span
The chat {model} span around one model call, with the request’s settings; record_chat_response adds what came back.
execute_tool_span
The execute_tool {tool} span around one tool call.
extraction_span
Create a span for an extraction operation.
invocation_span
Create a span for a full invocation (top-level).
invoke_agent_span
The invoke_agent {agent} span around one run of a text agent.
phase_transition_span
Create a span for a phase transition.
record_chat_response
Record a model call’s outcome on its chat_span.
runner_span
Create a span for the top-level runner.
tool_dispatch_span
Create a span for tool dispatch within an agent.