getsentry / getsentry/sentry

Support AND-scoped release condition on error message filters

Open
#116,394 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Feature Feature: Errors
Dominant language
Python
Stars
44.8k
Forks
4.9k
Avg merge
21h 23m
Merged PRs (30d)
607

Description

Inbound data filters today run each condition independently with OR semantics: "Filter by error message" matches across all releases, and the "Releases" filter drops an entire release. There is no way to express "drop where exception.value matches <pattern> AND release < app@1.3.0" — the filters cannot be combined into a single scoped rule.

Current behavior

  • Error message filter: matches pattern globally, no release scope
  • Releases filter: drops all events for a release, regardless of error content
  • No AND-composition between the two; separate rules are OR-ed together

Gap
Projects that backport fixes to older releases need to filter out known noisy errors only on affected versions without discarding newer traffic or unrelated errors from the same release. OR semantics make this impossible today.

Options

  • Add a release condition (semver range, e.g. < app@1.3.0) to the per-rule "Filter by error message" UI, evaluated as AND
  • Introduce a general-purpose compound rule builder that AND-combines any available filter predicates
  • Expose an advanced filter DSL for power users, leaving the simple UI unchanged

Action taken on behalf of Michael Chai.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the "Filter by error message" and "Releases" filter entry points described in the issue, tracing how their independent OR semantics are represented and evaluated. Compare the proposed per-rule UI, compound rule builder, and advanced DSL options; done means a decided design supports error-message matching scoped to a release condition without affecting unrelated events.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend-api-design, frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.