Skip to content

Clarification around what's possible with Sentry alert rule conditions #5922

Open
@antancia

Description

@antancia

Core or SDK?

Core Sentry product

Which part? Which one?

Sentry alert rules

Description

My team is trying to write some alert rules. We have a couple of rules that we'd like to include an OR condition, and wanted to know if something like this is possible:

CleanShot 2022-12-07 at 13 33 22@2x

Normally we would just add these as two separate IF condition lines, however the issue is that we always want to include the second IF condition that you see in the screenshot - and we don't seem to have that level of control over the conditionals.

For now we're getting around this limitation by writing separate alert rules for each of the event tags we want, but was wondering if something like you see in the screenshot is actually possible. If so - what's the correct syntax to use here?

Suggested Solution

If something like this is possible, then it would be helpful to update the alert documentation to clarify the correct way to do conditionals in the value field.

If this is not currently possible, then this is a feature that my team would love to have!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions