Getting started Community Training Tutorials Documentation APIs, AI & Tools
Source Agent ID
Policy Name |
Agent Connection Telemetry |
Summary |
Tracks the number of requests made to agent or MCP server instances |
Category |
A2A and MCP |
First Omni Gateway version available |
1.11.0 |
Release Notes |
|
Returned Status Codes |
No return codes exist for this policy. |
The Agent Connection Telemetry policy tracks the number of requests and what source makes the request to agent or MCP server instance.
To track the source of the request, the policy uses a DataWeave expression to extract an identification value from a request header. By default, the policy extracts the X-AGENT-ID header. The X-AGENT-ID header contains the Mulesoft instance ID.
To track the requests, the policy uses the mulesoft_agent_connection_count(source, destination) metric. Where source is the identification value extracted from the request header and destination is the agent or MCP server instance ID. Use Anypoint Monitoring to view the metric.
If the policy can’t extract the identification header, the policy doesn’t block or track the request.
| The Agent Connection Telemetry policy is applied by default to all agent and MCP server instances created using Agent Fabric. |
The Agent Connection Telemetry policy doesn’t process requests. It processes only responses with a 2xx status code:
SSE responses: The policy reads the stream one event at a time and doesn’t buffer the full stream.
Other responses: The policy buffers the full response body to parse JSON-RPC errors.
Buffered payloads count toward the Omni Gateway payload limit, which is 1 MB by default. To change the limit on a self-managed Omni Gateway, set the FLEX_DOWNSTREAM_CONNECTION_BUFFER_LIMIT_BYTES environment variable. In Connected Mode, you can also set Global connection buffer limit in Runtime Manager. For more information, see Configure Global and Routing Settings in Runtime Manager. For more information about the limit, see Omni Gateway Limits and Performance Metrics.
When you apply the policy from the UI, the following parameters are displayed:
| Element | Description |
|---|---|
Source Agent ID |
DataWeave expression to extract the source identification value from the request header. By default, the |