getsentry / sentry

Developer-first error tracking and performance monitoring
https://sentry.io
Other
39.17k stars 4.2k forks source link

Add "Else If" condition in alert rules #71327

Open jaydattc opened 5 months ago

jaydattc commented 5 months ago

Problem Statement

Currently, for conditions in the Alert Rule, the flow is When > If > Then. I have some complex alert rules for different features in the codebase. I want the ability to add an "Else if" rule in Alert Rules so I can route those alerts to appropriate channels in Slack.

Solution Brainstorm

So, the new flow can look like When > If > Else If > Then.

Product Area

Alerts

Edit

With ability to add multiple else if ladders hopefully

getsantry[bot] commented 5 months ago

Assigning to @getsentry/support for routing ⏲️

getsantry[bot] commented 5 months ago

Routing to @getsentry/product-owners-alerts for triage ⏲️

rachrwang commented 5 months ago

@jaydattc - thank you for sharing this feature idea, it's something we've been considering. Can you share more about how you work around this today, and why it doesn't meet your needs?

nirbhaysinghnarang commented 5 months ago

bump ^^

jaydattc commented 2 days ago

@rachrwang Hello, apologies for replying late. Currently our workaround is to send specific computed tags which will have that logic of routing the issue alert (slack, or something). But as we're using a monorepo for multiple features and products, it isn't easy to send sentry issues to correct teams.

rachrwang commented 2 days ago

@jaydattc - thanks for the context; we're working to build the "else if" concept into our upcoming updates to the alerts workflow. Will keep you updated as we make more progress