Does OpenTelemetry trace a handoff between two agents?
Yes, as of a convention merged October 26, 2026. A handoff shows up as the same execute_tool span an agent already emits when calling a tool, carrying two new attributes: gen_ai.transfer.mode and gen_ai.transfer.target.name, the agent handed off to.
gen_ai.transfer.mode has two values, split by API pattern, not framework: Google ADK and OpenAI Agents implement both. return_to_caller marks a delegation where the initiator waits and resumes once the target finishes, the shape an agent-as-tool call takes: Google ADK’s AgentTool and OpenAI Agents’ Agent.as_tool(); the target’s invoke_agent span nests inside the transfer span as its child. pass_control marks a handoff where the initiator doesn’t wait: Google ADK’s built-in transfer tool, LangGraph’s transfer tools, and OpenAI Agents’ native handoff() all use it; the two agents’ spans sit as siblings under the workflow instead of one nesting inside the other.
Both attributes carry a development stability marker, OpenTelemetry’s label for a convention that can still change. Before this, a trace showed two agents calling tools with nothing marking the second as a continuation of the first rather than unrelated work. A framework’s span can carry more than this: the OpenAI Agents SDK’s handoff span also records the transferred arguments, not just that control moved.
published