Share
AI/ML
5 min read
Share
Multi-agent systems have the potential to do amazing things, but their complexity makes communication between agents a real challenge. Unlike traditional software, these systems are made up of many independent agents that interact in unpredictable ways. This makes it hard to see how information is shared, how decisions are made, and how the system works as a whole.
When agents don't have enough context or miss important messages, they can make poor decisions or behave unexpectedly.
Without robust observability into these communication pathways, organizations face obstacles in pinpointing performance issues, diagnosing failures, ensuring reliability, and building trust in AI-driven multi-agent applications.
Observability must extend beyond traditional monitoring to include instrumentation of communication and reasoning layers, giving insight into message flows, interaction patterns, and the decision-making behind agent collaboration. This transparency is crucial for effective debugging, continuous improvement, and making these complex systems reliable and trustworthy.
AGNTCY, a Linux Foundation project, is building the complete infrastructure stack for the Internet of Agents, an open, interoperable internet for agent-to-agent collaboration. This is where multi-agent systems will be able to work with any other agent, regardless of who built it or where it runs, much like TCP/IP unified the early internet.
It provides essential standards and components such as Agent Directory Service, Secure Low-latency Messaging (SLIM), Agent Identity, and Agent Observability. The project supports pivotal protocols like Agent-to-Agent (A2A) for structured messaging between agents and Model Context Protocol (MCP) for agents to access external tools, which are central to the complex interactions within these systems.
By embedding observability standards into AGTNCY, we can enable consistent monitoring and tracing of agent interactions across multi-agent systems.
OpenTelemetry (OTel) is an open source, vendor-neutral framework designed to generate, collect, and export metrics, traces, and logs.
The rationale for using OTel standards, SDKs, and APIs to enable observability in multi-agent systems is compelling:
Baggage in OTel propagates request-specific metadata—like user IDs, client IDs, or account IDs—across services, enabling richer observability (traces, metrics, logs) downstream.
a2a.py instrumentation module from the agntcy/observe GitHub repository, which includes real-world usage of baggage in A2A communications.
This A2A instrumentation in Observe SDK from AGNTCY enables propagation of session metadata across A2A communication.
A tracing span is created for a2a.send_message, and header-level propagation ensures continuity of trace context and session state (via the session_id) across the client-to-server boundary.
Specification relationship and observations
Element | Details |
Scenario | Session context propagation in multi-agent A2A communication |
Key/value example | Key: execution.{traceparent} Value: session_id |
Protocol used | HTTP headers, OTel spans, A2A Python SDK |
Baggage usage | Maintains session continuity; ties session ID to trace |
Spec fit | Conforms to W3C baggage spec; simple ASCII key/value usage |
Best practices | Lightweight baggage, reuse trace context, privacy caution |
Feedback considerations | Size constraints, latency, security of session ID could be an issue |
By using OpenTelemetry, projects like AGNTCY are laying the groundwork for a truly observable and trustworthy AI ecosystem. This commitment to open standards for observability is vital for the successful deployment and management of the next generation of AI-powered applications. This real-world example shows exactly how baggage can be leveraged in agent-based systems to maintain session and trace continuity.
Get started and use the AGNTCY Observe SDK on GitHub for multi-agent observability now.
Get emerging insights on innovative technology straight to your inbox.
See how SoftServe used AGNTCY to overcome intelligent video monitoring challenges with scalable, modular, and real-time solutions.
* No email required
The Shift is Outshift’s exclusive newsletter.
Get the latest news and updates on agentic AI, quantum, next-gen infra, and other groundbreaking innovations shaping the future of technology straight to your inbox.