Skip to content

fix(workflow-engine): Reduce Sentry noise from DetectorGroup.DoesNotExist - #121024

Draft
sentry[bot] wants to merge 1 commit into
masterfrom
seer/fix-detector-group-log-level-IKLjTi
Draft

fix(workflow-engine): Reduce Sentry noise from DetectorGroup.DoesNotExist#121024
sentry[bot] wants to merge 1 commit into
masterfrom
seer/fix-detector-group-log-level-IKLjTi

Conversation

@sentry

@sentry sentry Bot commented Jul 31, 2026

Copy link
Copy Markdown
Contributor
The `_get_detector_for_group` function in `src/sentry/workflow_engine/processors/detector.py` was logging `DetectorGroup.DoesNotExist` exceptions using `logger.exception`.

This DoesNotExist is an expected fallback path when a specific DetectorGroup does not exist for a given group, and the system correctly proceeds to look for project-level or issue-stream detectors. Logging this as an exception was causing Sentry to capture a large volume of non-actionable error events (over 75k occurrences).

This change updates the log level from logger.exception to logger.info for this specific case, ensuring that the expected fallback is logged appropriately without generating unnecessary error events in Sentry.

Legal Boilerplate

Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. and is gonna need some rights from me in order to utilize my contributions in this here PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.

Fixes SENTRY-5R4N

Comment @sentry <feedback> on this PR to have Autofix iterate on the changes.

@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Jul 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants