getsentry / getsentry/sentry

Changing alert to only notify for level >= warning wilters out everything

Open
#91,701 2 comments 0 reactions 0 assignees View on GitHub
Product Area: Alerts
Dominant language
Python
Stars
44.8k
Forks
4.9k
Avg merge
22h 21m
Merged PRs (30d)
586

Description

### Environment

SaaS (https://sentry.io/)

### Steps to Reproduce

I have an alert which shows several errors and warnings in the preview. However if i add 'level greater or equal than warning' the preview becomes empty and I dont understand why. See the attached screenshots.

![Image](https://github.com/user-attachments/assets/37dd5423-469a-4322-9fae-12de7a33cc46)

![Image](https://github.com/user-attachments/assets/cc2e98f0-9827-446c-81b4-14de6978c496)

![Image](https://github.com/user-attachments/assets/f8e0a2c5-927d-4552-bb7b-5277c95244aa)

It seems that the this might be an unintended side effect of the when clauuse. If you change that to "A new issue is created" the preview does seem to work as expected with the level filter.

### Product Area

Alerts

### Link

_No response_

### DSN

_No response_

### Version

_No response_

Contributor guide

Open the contributing guide

Research direction

Reproduce the alert preview described in the issue, comparing the level >= warning filter with the different When conditions. Start by investigating the Alerts preview behavior and its handling of the level filter. Done means the preview continues to show matching warnings and errors when the filter is applied.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
observability-sre
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.