getsentry / getsentry/sentry

Metric Alert Creation Broken for Certain Queries

Open
#71,788 3 comments 0 reactions 0 assignees View on GitHub
Bug Product Area: Alerts Quality Sprint
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

1. Create a metric alert
2. In 'Filter events', add `is:unresolved` and `error.handled:`
3. Notice the error message: `Internal error. Your query failed to run` (in the "Number of Errors" graph and popup)
4. Unable to save metric alert due to this error

### Expected Result

* There should not be an error message for this query
* The "Number of Errors" graph should render as expected
* Should be able to save the metric alert

### Actual Result

* Error message: `Internal error. Your query failed to run` appears in "Number of Errors" graph and popup

Screenshot 2024-05-30 at 1 58 53 PM
* Unable to save metric alert

Screenshot 2024-05-30 at 2 00 05 PM

Tracked by this sentry issue: [https://sentry.sentry.io/issues/4973748508/?project=-1&referrer=issue-stream&statsPeriod=90d&stream_index=1]()
From this [GH comment on related issue]()
From this [GH comment on related issue]()

### Product Area

Alerts

### Link

*No response*

### DSN

*No response*

### Version

*No response*

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.