Call me if Sentry finds a new error
Sentry can make your phone show a full-screen alert when a new issue appears. Sentry signs its alerts with a secret instead of sending a key, so it gets an address of its own. It takes about ten minutes: you start in the app and finish on a computer.
1. Make the rule in the app
- In the app, tap + and choose Something at work.
- Name what you're watching for, for example the website shows an error.
- Tap Create the address. The key it shows is for other tools. Sentry doesn't need it.
- Choose Alert me, or Alert me, then call me for errors worth waking up for, and tap Save.
2. Copy the Sentry address
- On a computer, sign in at callmeif.app and open Alert sources.
- Open the source with your rule's name. Its Sentry box shows an address that starts with
https://callmeif.app/api/v1/sentry/. Copy it.
Keep this page open. You'll paste Sentry's secret here in step 4.
3. Make an integration in Sentry
- In Sentry, go to Settings. Under Integrations, open Custom Integrations, stay on the Internal Integration tab and click Create New Integration.
- Name:
Call Me If. Webhook URL: the address from step 2. - Switch Alert Action on. Leave every permission at No Access, tick no webhooks, and leave Webhook Headers empty.
- Click Save Changes. On the integration's page, copy the Client Secret.
4. Paste the secret
Back on the source's page at callmeif.app, paste it into Sentry client secret and click Save. The box then says A Sentry client secret is saved. The page never shows the secret again.
5. Make an alert in Sentry
- Go to Monitors, then Alerts, and click Create Alert.
- Choose Alert on all issues in selected projects and pick your projects.
- Under When, keep A new issue is created and delete the other triggers Sentry fills in. Delete An issue is resolved in particular: with it, Sentry would alert your phone when an issue is fixed.
- Under Then, choose Send a notification via an integration, then Call Me If.
- Click Send Test Notification. Your phone should show an alert within a few seconds. Sentry's test alert has no real title; real errors do.
- Click Create Alert.
What alerts you, and what does not
Each new Sentry issue alerts you once. More events of the same issue don't alert you again, because the alert only fires when the issue is new.
The alert screen shows the error's title, with the name of the Sentry alert and a link to the issue under it.
The secret only lets Sentry's alerts in. It can't read your history or anything else in your account.
If the test does not alert you
- Nothing arrives: check that the Webhook URL is the Sentry address from the source's page, not the general address, and that the source's page says a secret is saved. An alert signed with a different secret is refused.
- It arrived but no alert showed: check the phone's setup in the app. Home says whether this phone is ready, and what to fix.
Call Me If is not for medical, emergency or life-safety use.