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”
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