Metric Alert Creation Broken for Certain Queries
- 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
* Unable to save metric alert
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
Assessment
This issue has not been assessed yet.