Overview
Connect Sentry to Continue Mission Control to enable agents to automatically detect, analyze, and resolve production errors. When Sentry is enabled, Continue can generate PRs to fix issues, analyze error patterns, and maintain application health.What You Can Do with Sentry Integration
- Automatically generate PRs to resolve new errors
- Analyze error patterns and identify root causes
- Prioritize issues based on impact and frequency
- Create detailed bug reports with stack traces
- Monitor error trends across releases
Setup
1
Navigate to Integrations
Go to your Integrations Settings.
2
Connect Sentry
Click “Connect” and select Sentry. You’ll need the following credentials:
- Sentry Organization Slug: Your organization name (e.g., “my-company”)
- Auth Token: Internal integration token from Sentry
- Client Secret: For webhook signature verification
3
Configure Sentry Internal Integration
In your Sentry account:
- Create a new internal integration
- Set the webhook URL to
https://api.continue.dev/webhooks/sentry - Select “Read and Write” access for “Issue and Event”
- Select “issue” in the webhooks section and click Save Changes
- Copy the Auth Token and Client Secret
4
Add Credentials to Mission Control
Paste all three values into the integration form and click “Create Connection”
Use Cases
Automatic Error Resolution
Create agents that fix errors as they occur:Error Resolver Agent
Task Example: “Monitor new Sentry errors and create PRs with fixes for straightforward issues”What the Agent Does:
- Receives notifications when new errors occur
- Analyzes the stack trace and error context
- Identifies the root cause in your codebase
- Generates a fix and creates a pull request
- Links the PR back to the Sentry issue
Error Pattern Analysis
Identify and resolve systemic issues:Pattern Analyzer Agent
Task Example: “Analyze error patterns from the last 7 days and identify common root causes”What the Agent Does:
- Groups similar errors together
- Identifies patterns in stack traces and user actions
- Determines if errors are related to specific releases or features
- Creates comprehensive reports with recommendations
- Opens issues for systemic problems requiring architectural changes
Priority Triage
Automatically prioritize critical errors:Error Triage Agent
Task Example: “Triage new Sentry issues by impact, assign severity levels, and notify the appropriate team”What the Agent Does:
- Evaluates error frequency and user impact
- Assigns priority levels (critical, high, medium, low)
- Tags errors by component and team
- Creates GitHub issues for high-priority errors
- Notifies relevant team members
Release Quality Monitoring
Track error rates across deployments:Release Monitor Agent
Task Example: “Compare error rates before and after the latest release and flag any regressions”What the Agent Does:
- Compares error metrics between releases
- Identifies new errors introduced in the latest release
- Calculates error rate changes by percentage
- Generates release quality reports
- Creates rollback recommendations if error rates spike
Performance Issue Detection
Monitor and resolve performance degradation:Performance Watcher Agent
Task Example: “Identify performance regressions from Sentry performance monitoring and suggest optimizations”What the Agent Does:
- Analyzes transaction duration trends
- Identifies slow database queries or API calls
- Detects N+1 query problems
- Suggests code optimizations
- Creates PRs with performance improvements
User Impact Analysis
Understand how errors affect your users:Impact Analyzer Agent
Task Example: “Generate a report on which users are most affected by current errors and prioritize fixes accordingly”What the Agent Does:
- Identifies users experiencing multiple errors
- Analyzes error distribution across user segments
- Correlates errors with user churn or frustration signals
- Creates prioritized fix lists based on user impact
- Generates customer communication templates
Running Sentry Agents in Mission Control
You can run Sentry-connected agents in two ways:1. Manual Tasks
Trigger agents on-demand for error analysis:- Go to Mission Control Agents
- Select or create a Sentry-enabled agent
- Click “Run Agent” and provide your task description
- Monitor progress and review results in real-time
- “Analyze the top 10 errors from the last 24 hours”
- “Create a PR to fix the authentication timeout error”
- “Generate a report on errors affecting mobile users”
2. Automated Workflows
Set up agents to run automatically:- Webhook-triggered: Execute when new Sentry errors occur
- Scheduled: Run daily or weekly error analysis
- Threshold-based: Trigger when error rates exceed limits
Integration with GitHub
Combine Sentry with GitHub integration for a complete workflow:1
Connect Both Integrations
Enable both Sentry and GitHub integrations in Mission Control
2
Create a Unified Agent
Build an agent that:
- Receives Sentry error notifications
- Analyzes the error and finds the problematic code
- Creates a PR with a fix
- Adds the PR link to the Sentry issue
3
Set Up Automated Workflow
Configure the agent to run automatically on new Sentry issues
Monitoring Agent Activity
Track your agent’s error resolution performance:- View in Mission Control: See all agent runs and their outcomes
- Check Sentry: Verify that issues are being resolved
- Review PRs: Ensure quality of generated fixes
- Monitor Metrics: Track resolution time and success rate
Troubleshooting
Webhooks not triggering
Webhooks not triggering
Problem: Agent isn’t running when new errors occurSolutions:
- Verify webhook URL is correct in Sentry
- Check that “issue” is selected in webhook events
- Ensure Client Secret matches in both Sentry and Mission Control
- Review webhook delivery logs in Sentry
Agent can't access Sentry data
Agent can't access Sentry data
Problem: Agent returns errors when trying to fetch issue detailsSolutions:
- Verify Auth Token has “Read and Write” access for “Issue and Event”
- Check that organization slug is correct
- Ensure token hasn’t expired
- Confirm project permissions in Sentry
PRs not linking to Sentry issues
PRs not linking to Sentry issues
Problem: Generated PRs don’t reference the Sentry issueSolutions:
- Ensure both Sentry and GitHub integrations are connected
- Verify agent has permission to access both services
- Check that the agent prompt includes instructions to link issues
- Review agent logs for errors