OpenTelemetry for AI agent observability: tracing agent tool calls and API integrations
Blog post from Nango
AI agents often encounter operational issues not within the model itself but in the integration layer, where tools fail due to reasons like OAuth errors, rate limits, or bad requests. OpenTelemetry (OTel) provides a comprehensive solution for tracing these issues, enabling you to monitor the entire agent run, including the model interactions and the API calls that tools make. It uses GenAI semantic conventions to offer a standard, portable format for capturing agent telemetry, ensuring compatibility across different platforms like OpenAI and Anthropic. The integration layer, often the source of production incidents, can be traced by combining GenAI conventions with HTTP client traces, allowing visibility into API calls, authentication, and retries. Platforms like Nango facilitate this by exporting telemetry data as OpenTelemetry traces, which can be integrated into existing backends such as Grafana or Datadog. By tracing both model and integration layers, you can effectively diagnose issues like token expiration or rate limits that manifest as tool call failures, without being tied to any specific vendor or tool.
| Trend | Post Mentions | Total Month Mentions | Posts | Companies | MoM |
|---|---|---|---|---|---|
| OpenTelemetry | 25 | 965 | 147 | 50 | 0% |
| AI Agents | 13 | 5,827 | 1,275 | 245 | -5% |
| Observability | 9 | 3,732 | 711 | 187 | -12% |
| MCP | 4 | 7,621 | 787 | 203 | -1% |
Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.