Alerts. Can't filter out errors in the "IF" block
Environment
self-hosted (https://develop.sentry.dev/self-hosted/)
Steps to Reproduce
I'm trying to set up notifications so that they only fire on fatal errors and if they happen more than N times
I know for sure they are there because I get alerts if I remove everything from the if block.
I also launched two types of alerts in parallel, with and without a filter, and alerts with the level=fatal filter do not work.
Steps:
- Click "Create Alert" on the Alert List screen.
- Screen – “Select alert”, select the notification type “Issuess”.
- In the WHEN block, select "Number of events in an issue is more than 1 in 30 days"
- Make sure the preview shows errors with level = fatal.
- in the iF block, select "The event's level is equal to fatal"
- It is expected that only errors with a fatal level will show in the preview. Actual result, preview is empty.
PS: If I remove the IF block, then I receive error notifications with a fatal level. On the error list screen, I can successfully filter out fatal errors using the filter: "level:fatal"
Envirement: self-host react-native: 0.71 @sentry/react-native: 5.19.1
Expected Result
The alert system sends messages with information about errors with level = fatal
Actual Result
The alert system does NOT send messages with information about errors with level=fatal
Product Area
Alerts
Link
No response
DSN
No response
Version
No response
Assigning to @getsentry/support for routing ⏲️
Assigning to @getsentry/support for routing ⏲️
Routing to @getsentry/product-owners-alerts for triage ⏲️
Another use case: We want to have alert over issues that got degradation in one region. We want to get an alert over this issue.
So we've tried setting when: 5k users a day, if region = AU.
But the "if" condition works only over the last event, instead of filtering 5k users, which is quite an unexpected behaviour imo and less intuitive to understand. Though the biggest issue is that we can't have alerts over our regions, which would help us avoiding progressing faulty deploys to other regions.
@mentaman i believe your ask is separate from @zzzkasper-1995 who's issue seems to be with the preview which currently doesn't support every combination of filter.
@mentaman issue alerts filters don't currently work together as a query builder, each filter is independent of each other. Metric alerts might be the closest you could get or if your region happens to be in the environment this would also apply to the 5k users in interval query.
Has this issue been solved? I also encountered this problem on my self-hosted sentry. Not only can I not preview it, but it actually cannot function normally when trigger alert.