Skip to main content

Overview

IncidentFox integrates with Sentry for error tracking, issue analysis, and release correlation. This helps identify application errors that may be causing incidents.

Tools Available

ToolDescription
sentry_list_issuesList issues in a project
sentry_get_issue_detailsGet detailed information about an issue
sentry_list_projectsList all Sentry projects
sentry_get_project_statsGet error statistics for a project
sentry_list_releasesList releases and deployment info

Configuration

{
  "tools": {
    "sentry": {
      "enabled": true,
      "organization": "your-org-slug",
      "auth_token": "vault://secrets/sentry-token"
    }
  }
}

Authentication

Create a Sentry API token with the following scopes:
ScopePurpose
project:readList and view projects
event:readView issue details and events
org:readView organization info

Example Queries

Find Recent Errors

@incidentfox what errors are occurring in the checkout service?

Correlate with Deployment

@incidentfox did the latest release introduce any new errors?

Get Issue Details

@incidentfox show me details about Sentry issue PROJ-1234

Use Cases

Error Spike Investigation

When investigating latency or availability issues:
  1. IncidentFox checks Sentry for recent error spikes
  2. Correlates error timing with incident timeline
  3. Identifies specific exceptions causing problems

Release Impact Analysis

After a deployment:
  1. Compare error rates before/after release
  2. Identify new error types introduced
  3. Correlate with GitHub commits in the release

Root Cause Identification

Sentry provides stack traces that help identify:
  • Specific code paths causing errors
  • Environment differences (e.g., specific hosts)
  • User impact scope

Configuration Options

OptionDescriptionDefault
organizationSentry organization slugRequired
auth_tokenAPI authentication tokenRequired
default_projectDefault project for queriesOptional
environmentFilter to specific environmentOptional

Troubleshooting

Rate Limiting

Sentry has API rate limits. If you hit them:
{
  "tools": {
    "sentry": {
      "rate_limit_retry": true,
      "max_retries": 3
    }
  }
}

Missing Events

If recent events aren’t appearing:
  1. Check Sentry data retention settings
  2. Verify the project has events
  3. Ensure the time range is correct

Next Steps