Sentry error triage and fix

Connects to Sentry to find the top unresolved error by volume. Traces the stack trace back to source code, identifies the root cause, applies a fix, and opens a PR.

Requires: Sentry. Set up integrations

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 to explore.

Ready to try a template?

Start building with a free Ona account.

Copied to clipboard!

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