Sentry Integration
Connect Sentry to enable the AI agent to analyze errors, exceptions, and performance issues during investigations.
Capabilities
Once connected, the AI agent can:
| Capability | Description |
|---|---|
| View Issues | Browse and search error issues |
| Analyze Events | Examine individual error events and stack traces |
| Check Releases | Review release health and regressions |
| Performance Data | Access transaction performance metrics |
Prerequisites
- A Sentry account (Cloud or self-hosted)
- An Auth Token with appropriate scopes
- Read access to the projects you want to monitor
Setup
1
Create an Auth Token
- Log in to Sentry
- Go to Settings → Auth Tokens
- Click Create New Token
- Select the required scopes (see below)
- Copy the generated token
2
Add Integration in Autoheal
- Go to Integrations in Autoheal
- Click Sentry
- Enter a name (e.g., "Production Sentry")
3
Configure Credentials
Enter the following:
- Auth Token: Your Sentry auth token
- Organization Slug: Your Sentry organization name
- URL (optional): For self-hosted Sentry instances
4
Test and Save
Click Test Connection to verify, then Save.
Required Scopes
Create your auth token with these scopes:
| Scope | Why It's Needed |
|---|---|
project:read | List and access projects |
event:read | View error events |
issue:read | Browse issues |
org:read | Access organization data |
Example Queries
Once connected, you can ask the AI agent:
What are the most frequent errors in the payment service?
Show me the stack trace for the latest NullPointerException
Were there any new errors after yesterday's deployment?
What's the error rate trend for the checkout flow?
Troubleshooting
401 Unauthorized
- Verify the auth token is correct
- Check that the token hasn't been revoked
- Ensure the token has the required scopes
Organization Not Found
- Verify the organization slug is correct
- Check for typos (slugs are case-sensitive)
- Ensure your token has access to the organization
No Issues Found
- Verify the token has
issue:readscope - Check that there are issues in the specified time range
- Ensure project access permissions are correct