Observability & distributed tracing support for A2A - follow a request across agents
Discussed in https://github.com/embabel/embabel-agent/discussions/1839
Originally posted by azanux July 29, 2026
The problem
Embabel can already monitor and trace everything an agent does inside a single service (LLM calls, tool calls, cost, latency).
But when agents talk to each other over A2A (Agent-to-Agent), we lose the picture. Each agent records its work as if it were alone - the links between them are missing. So a request that travels through 2, 3, or more agents shows up as separate, disconnected traces instead of one continuous journey.
Concretely:
- We can't see the full path a request took across agents.
- We can't tell which agent in the chain is slow or failing.
- We can't attribute cost/tokens to the original request.
- A2A traffic isn't even recorded today.
The goal
Make A2A observable end-to-end, so that one request = one continuous trace spanning every agent it touches - whether they run in the same service or on different machines (distributed tracing).
This is the "cross-agent observability" requested in #580.
What success looks like
- A user (or ops engineer) can open one trace and follow it from the first agent all the way through every A2A hop to the final answer.
- Each hop shows its method, timing, cost/tokens, and success/failure.
- If an agent is slow or errors, it's obvious which one.
- No impact when A2A isn't used (opt-in flag).
How (high level)
- Record A2A traffic - every incoming/outgoing A2A message becomes a visible step in the trace.
- Link the agents - pass a shared "trace id" between agents so they all add to the same trace instead of starting fresh (standard W3C trace propagation).