Sentry
Get a push for new Sentry issues, issues that come back, and alert rules that fire.
Connect Sentry with an internal integration. Opush pushes new issues, issues that come back after being resolved, and your alert rules: issue alerts and metric alerts.
Set it up
Create the integration in Opush
In the app or the web console, add a service integration and pick Sentry. Give it a name if you like, for example the project name. Copy the Payload URL.
Create an internal integration in Sentry
In Sentry, open Settings › Developer Settings › Custom Integrations and create an Internal Integration.
- Webhook URL: the payload URL from Opush.
- Alert Rule Action: turn it on.
- Permissions: set Issue & Event to Read.
- Webhooks: check issue.
Paste the Client Secret into Opush
Save the integration in Sentry and copy its Client Secret. In Opush, paste it into Signing secret from the service on the integration's page and save. Until you do, Opush rejects every event from Sentry.
Use it in an alert rule
In an alert rule, add the action that sends a notification via this integration. Then use Send Test Notification to check that pushes arrive.
No “Webhook connected” push
Sentry sends an installation event as soon as you create the integration, before you've pasted the Client Secret into Opush. Opush can't verify it yet, so you won't get a "Webhook connected" push. Use the alert rule's test notification instead.
Opush checks the Sentry-Hook-Signature header on every request with the Client Secret.
What gets pushed
| Sentry event | Subtitle | Message |
|---|---|---|
| New issue | New issue | TypeError: x is undefined · ROCKET-1 · rocket-ios |
| Issue comes back (unresolved) | Issue is back | TypeError: x is undefined · ROCKET-1 · rocket-ios |
| Issue alert rule fires | Alert · Very Important Alert! | ReferenceError: heck is not defined |
| Metric alert | Critical, Warning, Resolved | Too many errors · 1000 events in the last 10 minutes |
| Error (if you check error under Webhooks) | Error | The error's title and where it happened |
- The push title is the integration's name, or "Sentry" if you didn't name it.
- Issue pushes show the issue's title, its short ID and the project.
- Issue alert pushes show the rule's name in the subtitle and the event's title in the message.
- Tapping the push opens the issue, the event or the alert in Sentry.
Resolving, assigning and archiving issues aren't pushed. You usually did those yourself.
These arrive as time-sensitive notifications: issue alert rules that fire, critical metric alerts, and issues or errors at the fatal level.
Troubleshooting
401: the Client Secret in Opush is missing or wrong. Copy it again from the internal integration in Sentry.- No push from an alert rule: check that the rule's action uses this integration, and that Alert Rule Action is on.
- Too many pushes: the issue webhook pushes every new issue. To get fewer, uncheck it and rely on alert rules, which have conditions.