Triagebellfor Sentry
Guide

Sentry alerts in Slack vs on your phone

By the Triagebell team · Updated · 4 min read · How we check guides

Short answer

To connect Sentry to Slack, a Sentry owner, manager or admin opens Settings > Integrations > Slack, clicks Add Workspace and allows the app in Slack. Then, in Monitors > Alerts, add a Slack action to an alert and pick the workspace and channel (invite @sentry first for private channels). Slack works well as a shared team feed with Resolve, Archive and Assign buttons. Whether your phone buzzes depends on your Slack notification settings, so for the person on call, direct push or a paging integration is more reliable.

Steps

  1. Add the Slack workspaceIn Sentry, go to Settings > Integrations > Slack, click Add Workspace, choose the workspace in Slack and click Allow. This needs Sentry owner, manager or admin permissions.
  2. Invite the bot to private channelsPublic channels work right away. In a private channel, invite @sentry first or alerts can't be posted there.
  3. Create or edit an alertIn Monitors > Alerts, choose the source projects and environment, then set the When triggers and If filters.
  4. Add the Slack actionUnder Then, choose Slack, pick the workspace and channel, and optionally add tags and notes such as a mention or runbook link.
  5. Test and throttleClick Send Test Notification, set Throttling so one issue doesn't flood the channel, then click Create Alert.

Install Sentry's Slack integration

Only a Sentry owner, manager or admin can install it. On the Slack side, any workspace member can authorize apps by default, but your workspace may make you request approval first.

  1. In Sentry, go to Settings > Integrations > Slack and click Add Workspace.
  2. In Slack's authorization window, pick the workspace from the dropdown in the top right and click Allow. Repeat this for each additional workspace.
  3. The integration is now available to every project in the Sentry organization.
  4. For private channels, add the Sentry app to the channel, for example by mentioning @sentry there and inviting it. Public channels work without an invite, because the app has the chat:write.public scope.

Slack shows the app's scopes when you authorize it. They include chat:write to post and update alerts, commands for /sentry, channels:read, groups:read (only private channels the bot was added to) and users:read to validate alert targets, and links:read/links:write to unfurl sentry.io links. Reading thread history (channels:history, groups:history) is optional and only used by Seer Agent.

Route alerts to the right Slack channel

Alerts live in Monitors > Alerts. Each one has a source, an environment, and one or more When/If/Then blocks:

  • Source: all issues in selected projects, specific monitors, or all projects. Only org owners and managers can create alerts across all projects.
  • When (any of): A new issue is created, An issue escalates, A resolved issue regresses, An issue is resolved, An event or issue activity is captured, or a Seer stage.
  • If: for example Issue priority is high, Number of users affected, Event level or Latest release.
  • Then: Slack, with a workspace, a channel or user, optional tags to show in the message and optional notes, text such as a mention or a link to your runbook.

Click Send Test Notification before you save. Then set Throttling: the default is to notify on every trigger, and you can choose anything from 5 minutes to 30 days per issue. A layout that holds up in practice:

AlertWhen / IfSlack target
Production, high priorityNew issue or escalates, priority high, environment production#web-alerts, with a mention in the notes
RegressionsA resolved issue regressesThe owning team's channel
Everything elseNew issue, throttled to 1 dayA low-noise #web-triage channel

If you use team-based alerts, run /sentry link team acme in a channel to tie a team to it. To get your own workflow and deploy notifications as Slack DMs, run /sentry link and manage them under User Settings > Notifications.

/sentry link                     # link your Slack user to your Sentry account
/sentry link team acme           # in a channel: send a team's alerts here
/invite @sentry                  # add the bot to a private channel

What you can do from the Slack message

Error alerts come with Resolve, Archive and Assignee controls, and with Seer enabled you can start a fix from Slack. Metric alerts include a chart, and later status changes post as replies in the thread. Pasted sentry.io links unfurl into previews. If your organization has Seer Agent, you can @sentry in a thread to ask it questions. You have to mention it in every message, not just the first.

Slack alerts vs push on your phone

Slack is where the team sees an alert and discusses it. It isn't built to make sure one person notices it at 2 a.m. These are the differences that matter on a phone:

Sentry alerts in SlackDirect push to your phone
Who sees itEveryone in the channel, with the thread as the recordOnly you
Will your phone buzz?Depends on your Slack settings. With Mentions and direct messages, a channel post is silent unless the notes mention you. By default, Slack sends to mobile only after you've been inactive on desktop (one minute after locking the screen, or 10 minutes without cursor activity).Yes, unless you've muted it or set quiet hours
NoiseShares the phone with every other Slack message, and busy channels bury alertsOnly Sentry, filtered to what you chose
Acting on itResolve, archive and assign. For the stack trace you open Sentry in a browser.Depends on the app: in a full client, the issue, trace and actions are one tap away
Getting someone upWeakBetter, but for real paging with escalation use Sentry's PagerDuty or Opsgenie actions

Most teams use both. Slack is the shared feed and the record. Phone push goes to whoever is on call. And for issues that must wake someone, add a paging action to the same alert.

Troubleshooting the Slack action

  • Requests to slack were rate limited. Please try again later. This appears when you save an alert. Enter the channel or user ID as well as the name. You'll find the channel ID at the bottom of the channel-name popup, and a member ID under their profile's Copy member ID.
  • The slack resource example-channel does not exist or has not been granted access in the example-workspace Slack workspace. The app usually isn't in that (private) channel. Open the channel's settings, then Integrations, and check that Sentry is listed under Apps. Invite it if it's missing.
  • Alerts arrive but nobody reacts. Check people's Slack notification preference for that channel, add a mention in the alert's notes, and add throttling so the channel stays readable.

Questions

Can Sentry send Slack alerts to a private channel?

Yes, once the Sentry app is in that channel. Invite @sentry there; otherwise saving the alert fails with a 'does not exist or has not been granted access' error.

Can I get Sentry notifications as Slack DMs?

Yes. Type /sentry link in Slack to link your account, then manage your workflow, deploy and alert notifications under User Settings > Notifications. An alert's Slack action can also target a user instead of a channel.

Can I resolve a Sentry issue from Slack?

Yes. Error alerts in Slack have Resolve, Archive and Assignee controls. To see the full stack trace or the events, you still open the issue in Sentry.

Do I need one alert per Slack channel?

No. One alert can have several If/Then blocks, each with its own filters and Slack channel, so you can send high-priority issues to one channel and everything else to another.

Sources

  1. Slackdocs.sentry.io
  2. Creating an Alertdocs.sentry.io
  3. Alertsdocs.sentry.io
  4. Configure your Slack notificationsslack.com