getsentry / getsentry/sentry

Use Sentry issue priority to specify `severity` on outgoing events

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

Description

### Problem Statement

My team uses Sentry to create incidents on Pagerduty when a new event is added to an issue. Sometimes there are noisy issues that come from error logs or thrown exceptions, and we want to be able to control the noise without outright archiving the issue.

I set up Event Orchestration in Pagerduty that sets the urgency of the incident based on the `severity` sent by Sentry. When the severity is `error`, we page the on-call. When the severity is `warning`, we file an incident but do not page the oncall.

I'd like to be able to set a `severity` level based on the Sentry Issue priority, rather than the underlying event level. This way, if a noisy issue pages the on-call, they would be able to set the Issue Priority in Sentry to `Medium`. Then they will still receive incidents, but won't be woken up in the middle of the night from a page.

![Image](https://github.com/user-attachments/assets/7d4ec2c1-6784-4a8b-96e1-f6c56c0faa15)

Sentry currently only allows me to filter based off of event level, not Issue Priority.

![Image](https://github.com/user-attachments/assets/ebf28f58-550a-4c80-9a81-37373016e532)

### Solution Brainstorm

I'd like to be able to set a filter based off of Issue Priority. This way, I could set up an alert that declares:

1. When an event is captured by Sentry, and the Issue's Priority is High
2. Send a notification to Pagerduty with Error severity

And another alert that could declare:

1. When an event is captured by Sentry, and the Issue's Priority is Medium
2. Send a notification to Pagerduty with Warning severity.

And so on for Low priority issues.

### Product Area

Alerts

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.