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_responseadds 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.