Your agent calls a tool over MCP and a vendor's agent over A2A. How do you get one end-to-end trace across your agent, the MCP server and the vendor's agent, and what do the OpenTelemetry GenAI conventions give you there?
Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.
Model answer: the part to lead with
One trace across three parties only exists if trace context crosses every boundary, and each boundary carries it differently. Inside your own service, ordinary OTel context propagation does the work. The two hops out are where traces usually break into three disconnected fragments.
Full worked answer with diagram
One trace across three parties only exists if trace context crosses every boundary, and each boundary carries it differently. Inside your own service, ordinary OTel context propagation does the work. The two hops out are where traces usually break into three disconnected fragments.
The MCP hop. MCP can run over stdio, where there are no HTTP headers to carry a traceparent. The 2026-07-28 MCP revision fixes this by reserving traceparent, tracestate and baggage in a request's _meta, with values in W3C Trace Context and W3C Baggage format. So the client injects the current span context into _meta on every tools/call, and the server extracts it and parents its own spans under yours. If you run your own MCP servers, add this to the server middleware once rather than per tool. If you call someone else's, check whether they extract it; many will not yet.
The A2A hop. A2A rides on HTTP, so standard W3C trace headers propagate. OpenTelemetry merged A2A conventions in late October 2026: client and server spans named by the A2A method (for example SendMessage), a2a.task.id and a2a.task.state attributes, gen_ai.conversation.id set from the A2A contextId, and the agent's name, version and description filled from its Agent Card. That gives you stable join keys even when the vendor's spans are not visible to you.
Propagation is not export. The vendor can honour your traceparent and still record its spans in its own backend. What you realistically get is a shared trace ID and task ID you can quote in a support ticket, plus your own client span showing latency and outcome. If deep visibility matters, negotiate span export or a per-task status endpoint in the contract. Long-running A2A tasks also outlive the request that started them, so link later spans to the original with span links keyed on a2a.task.id rather than forcing one trace that stays open for hours.
Treat inbound and outbound context as a trust boundary. Baggage travels to third parties, so never put user IDs, emails or tenant names in it, and strip it at egress to anything you do not run. Inbound tracestate and baggage from a vendor are untrusted input: do not let them drive sampling decisions or land unvalidated in log fields.
What the conventions give you, and what they do not. They give you shared names for model calls, tool executions, agent invocations and now A2A and MCP spans, so one backend can render the whole tree. They are still at Development status, and the dedicated repository had no tagged release as of early November 2026. In the first week of November alone it folded invoke_workflow into invoke_agent and deprecated the gen_ai.retrieval.client span, which silently breaks any dashboard keyed on those names. Pin the instrumentation version, and map emitted names to your own stable internal names in the collector, so a convention change is one config edit rather than every dashboard.
Worth sketching. Optional, but drawing the two carriers side by side shows why the MCP context lives in the message and the A2A context lives in the headers.
sequenceDiagram
participant U as User
participant A as Your agent
participant M as MCP server
participant V as Vendor agent
participant C as Collector
U->>A: request, root span starts
A->>M: tools/call with traceparent in _meta
M-->>A: result, child span recorded
A->>V: SendMessage with traceparent header
V-->>A: task id and state
A->>C: spans keyed by trace id and a2a.task.id
What a good answer covers
- One trace across three parties only exists if trace context crosses every boundary, and each boundary…
- Inside your own service, ordinary OTel context propagation does the work
- The two hops out are where traces usually break into three disconnected fragments
- MCP can run over stdio, where there are no HTTP headers to carry a traceparent
- The 2026-07-28 MCP revision fixes this by reserving traceparent, tracestate and baggage in a request's…
Key terms: The MCP hop · The A2A hop · Propagation is not export
In the glossary: MCP · A2A · Agent Card
Interviewer follow-ups to expect
The vendor refuses to export spans: what is the minimum you would ask them to log so a cross-company incident can still be joined up?
How would you keep a dashboard working through a breaking rename in the GenAI conventions?
What would you never allow into baggage, and how do you enforce that?
Worked answer from AI-Engineer-Interview-Questions by Om (MIT), reformatted for LLM Prep · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep