-
-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Slack Integration: Should be able to mention a user or user group in an alert #19271
Comments
this is would be very helpful for us as well. |
A few workarounds that I've used with success:
|
This issue has gone three weeks without activity. In another week, I will close it. But! If you comment or otherwise update it, I will reset the clock, and if you label it "A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀 |
This still would be nice to have |
More than just mentions, would be very useful if we could add |
It should just allow a custom message (which can include mentions), like other integrations do (e.g. Grafana's Slack integration for alerting). |
For sure, a simple @Team-Example solve my problem. |
@chadwhitacre What we can do to get this prioritize. This is a super simple but powerful improvement ! |
I believe Sentry recently added support for notification by error frequency. |
This still would be nice to have |
Bump @getsentry/ecosystem. Not sure if this is (still?) on your radar. |
I don't know if it can helps but I have found a quick solution for this one I saw there that sentry is calling Slack with:
➡️ Which means any message printed in the Slack channel will link handles (people and team). A quick solution is to use the
➡️ It means knowing in your codebase which people to mention (not using natively the app to do that) 🏗️ This is a workaround solution but at least it enables to tag someone in the meantime |
The one missing piece of this puzzle is that you have to add the |
@ricoleabricot |
Hey @snirbenyosef, sorry for the late answer. The What you need to do is, as @nielsvaneck said above, create an Alert Rule, and set the Then, when creating your Sentry event in your codebase (or catching it to add data), simply add the tag to it like I proposed in my initial answer :) |
Thank you @ricoleabricot . and then in sentry alert I add: but its still not pinging when slack message are sent, its just shows the A12345 any ideas what I'm doing wrong? |
Hey @snirbenyosef, you need to add a @ before the handle to tag on Slack 😅 |
thanks for the quick answer. |
On my side I use the name of the user, or the user group's one 😄 |
@ricoleabricot thanks working! |
I'm struggling to get user mentions to work as well. I have the Any ideas what might be going wrong? |
Looks like Slack changed how user mentions specifically need to be formatted. Using |
This is basically a Slack bug/feature. I opened a help request with Slack regarding this at https://sentry-demo.slack.com/help/requests/4625909 We should be able to detect |
Thanks @realkosty the above mentioned approach works, I'm able to get notification with that, |
hey @realkosty @brianthi @Dhrumil-Sentry was wondering if this suggestion #19271 (comment) can be implemented by sentry team? since right now it doesn't do any notifications to to the tagged users/group. it would be really helpful if we can get notified, so we can have the respective users take a look right away |
Routing to @getsentry/product-owners-settings-integrations for triage ⏲️ |
@xenditjoshjimenez We're considering adding this to the integration but we don't have any concrete timelines yet. How would you use this feature? If Sentry allowed you to specify users to be tagged in the alert, would you keep changing the alert rule since the person on-call might keep changing? |
ah no, our use case is it'll be fixed to tag a slack user group who's responsible for handling or managing the service |
We would also benefit from this feature, to make sure tags are noticed by our rotating slack group of on call people |
This is already available in product. More info in the other thread: #61601 (comment) |
There is now a "notes" section available when creating an alert rule for Slack. You can read more about the updates we've added here. |
It looks like this might have been missed in the api? https://docs.sentry.io/api/alerts/create-an-issue-alert-rule-for-a-project/ or is this docs side only its missing? this is now causing drift in our IAC, im just trying to narrow down if its an api issue or if there logic in the terraform provider that needs adjusting |
Summary
In slack alerts we should be able to set a user or user group mention
Motivation
There can be a slack user-group with on-call people. When critical alerts hits the channel we want to mention on call user group or any user
Additional Context
I have looked around and not able to find a way to add slack user mention in a notification so creating this issue
┆Issue is synchronized with this Jira Improvement by Unito
The text was updated successfully, but these errors were encountered: