Agents
Use AI observability in Sentry to trace and debug agent workflows and conversations. Monitor agent runs, tool calls, model interactions, token usage, and errors.
Sentry helps you understand what's going on with your agent workflows. Using agent tracing, it automatically collects information about agent runs, tool calls, model interactions, and errors across your entire AI pipeline—from user interaction to final response. You can also replay past conversations. If you are looking for MCP monitoring, see MCP Servers.
To start debugging agents, you must have an existing Sentry account and project set up. If you don't have one, create an account here.
Use agent tracing by setting up Sentry for Agents and name your agents so they're identifiable in the dashboard.
- Your agent is failing silently during tool execution, and you want to trace the complete agent flow to identify where it's breaking.
- Users report that your agent is returning unexpected or malformed responses, and you need to debug the full context of prompts, model calls, and outputs.
- Your agent workflows are experiencing performance issues, and you want to identify which steps (model calls, tool usage, or custom logic) are causing bottlenecks.
Was this helpful?
Help improve this content
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) or suggesting an update ("yeah, this would be better").
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) or suggesting an update ("yeah, this would be better").