Automations/Incident Response/Sentry error triage and fix

Sentry error triage and fix

Finds the top unresolved Sentry error, traces it to source, applies a fix, and opens a PR.

Requires: Sentry. Set up integrations

Use this template

How to use this template

  1. 1Click "Use this template" or create a new automation in Ona
  2. 2Set your trigger (manual, scheduled, or event-based)
  3. 3Copy each step below into the automation builder
  4. 4Customize the prompts for your specific use case

What this does

  • Find the most impactful unresolved error
  • Trace stack traces to source code
  • Apply minimal targeted fixes
  • Cross-link Sentry issues with PRs

Workflow

Trigger

Manual trigger

Select the project to scan for unresolved Sentry errors.

Prompt

Fetch top error

List unresolved Sentry issues from the past 24 hours sorted by event count. Select the top unassigned issue.

Prompt

Trace root cause

Locate the exact file and line from the stack trace. Identify the root cause category and explain it.

Prompt

Apply fix

Fix the root cause with a minimal change. Add or update tests to cover the error scenario.

Shell Script

Run tests

npm test || go test ./... || yarn test || echo "Tests completed"
Pull Request

Open PR

Create a draft pull request with the fix and root cause analysis.

More automations that supercharge your development workflow with Ona.

Start shipping with Ona

No commitment. No setup. Just start.

Copied to clipboard!

This website uses cookies to enhance the user experience. Read our cookie policy for more info.