The moment it happens
Post brand-new Sentry errors to Slack
When Sentry sees an error for the first time, a channel gets its title, culprit and a link to the issue.
- Runs
- The moment it happens
- Apps
- Sentry
- AI
- Not needed
- Access
- event:read
Send this to your assistant
Create a ClickRuntime automation: whenever Sentry records a new issue in my api project, post the title, culprit and issue link to #errors in Slack.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
Some errors matter immediately: a checkout exception on the first minutes after a deploy, a new crash on login, a payment library failing. Sentry catches them, but a team that only sees the dashboard when it opens it learns about the problem from users. Email alerts go to whoever is on the project and are easily lost, and a developer who is heads-down in code may not see an email for an hour while customers are failing to pay.
When Sentry sees an issue for the first time, it sends an event to the automation, which formats the title, culprit and a link, and posts it to a Slack channel. The alert arrives the moment Sentry creates the issue. Engineering teams use it as a shared, visible notice of brand-new problems, so the right person can start work immediately.
What you get out of it
Fixes start within minutes
A new error in Slack reaches a whole team already watching the channel. Someone picks it up, and the customer-facing problem is shortened from hours to minutes. A checkout exception reported within minutes can be rolled back before most of the day's buyers reach it.
Only brand-new problems interrupt
Alerts are limited to first-seen issues, so the channel does not fill with repeats of a known bug. People keep paying attention because every message is something they have not seen before.
The culprit is in the message
The post shows the title and culprit, the function or file responsible. A developer can often tell whose code is involved just by reading the notice and assign it directly.
Deploy problems are seen at once
A new error right after a release strongly suggests the release caused it. The team can roll back or patch quickly, before the issue reaches the rest of the user base.
Everyone shares the same picture
Developers, support and product see the same alert at the same time. Support can warn customers and product can decide on communication while engineers work on the fix. Support, product and engineering read the same message together, so nobody relays a half-remembered version to anyone else.
How it works
What happens, step by step
When Sentry sees an error for the first time, it tells ClickRuntime straight away.
ClickRuntime picks out the error title, the code where it happened and a link to the issue.
It posts them to your Slack channel.
Before it runs live
- Connect Sentry
- Paste your automation's link into the other app's webhook settings
What you get
Build your own
Need it to work differently?
Your own rules
Conditions, thresholds, filters and exceptions, written the way you'd explain them to a colleague.
Any number of apps
One automation can read from one app and update several others. Over 248 apps are ready, and anything with an API works too.
AI where it helps
Summaries, classification, extraction and drafts use ClickRuntime's built-in AI, with no extra key.
On a schedule or on each event
Runs as often as every 5 minutes, or the moment an app sends an event, and keeps track of what it already handled.
Changes you can ask for
- Act only on the items that match your own rules, and skip the rest
- Add an AI step, for example to summarize, sort or draft a reply
- Add another app, for example also send it to Slack
- Combine it with other Sentry steps into one automation
Under the hood
The code that runs this automation
from clickruntime import on_event, notify
@on_event
def handle(event):
if event.header("Sentry-Hook-Resource") != "issue" or event.json.get("action") != "created":
return {"skipped": True}
issue = event.json["data"]["issue"]
if issue["project"]["slug"] != "api":
return {"skipped": issue["project"]["slug"]}
notify.slack(f"New Sentry issue: {issue['title']}\n{issue.get('culprit', '')}\n{issue['web_url']}", channel="#errors")
return {"issue": issue["id"]}FAQ
Common questions
Is this the same as Sentry's own Slack integration?
How do I connect Sentry to this automation?
Can I send high-severity issues to a different channel?
What permissions does it need?
Does it need AI?
How many runs does it use?
Can I change how it works?
Related
You might also like
Get yesterday's new Sentry issues each morning
A weekday email listing issues first seen in the last 24 hours, busiest first, with event counts.
See how it worksSee which releases introduced new errors
A Friday email listing the week's releases with the number of new issues each one brought in.
See how it worksGet your top errors explained in plain English
Once a week, your five worst unresolved issues come with a short note on what probably causes each.
See how it worksKeep exploring
Set up “Post brand-new Sentry errors to Slack” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.