Skip to content

ref(grouping): Add false positive parameterization metric#112275

Merged
lobsterkatie merged 2 commits into
masterfrom
kmclb-add-false-positive-metric
Apr 6, 2026
Merged

ref(grouping): Add false positive parameterization metric#112275
lobsterkatie merged 2 commits into
masterfrom
kmclb-add-false-positive-metric

Conversation

@lobsterkatie
Copy link
Copy Markdown
Member

In the metrics we use to track message parameterization, we tag the overall timing metric with a false_positive tag when we hit the fallback case (to see both how often it happens and how much time it adds to the process), but we don't track the individual times we hit a false positive value (which could be more than once per message). This adds a metric to do that, so that we can compare false positive hits to true positive hits (tracked by the existing grouping.value_parameterized metric). If the rate is higher than we'd like, we can consider tightening the "IP-like" regex we use for our initial match.

@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Apr 6, 2026
@lobsterkatie lobsterkatie marked this pull request as ready for review April 6, 2026 19:38
@lobsterkatie lobsterkatie requested a review from a team as a code owner April 6, 2026 19:38
Comment thread src/sentry/grouping/parameterization.py
@lobsterkatie lobsterkatie force-pushed the kmclb-add-false-positive-metric branch from 767dc8b to 3e62fd2 Compare April 6, 2026 20:02
@lobsterkatie lobsterkatie merged commit 8ec9413 into master Apr 6, 2026
154 of 156 checks passed
@lobsterkatie lobsterkatie deleted the kmclb-add-false-positive-metric branch April 6, 2026 21:01
george-sentry pushed a commit that referenced this pull request Apr 9, 2026
In the metrics we use to track message parameterization, we tag the overall timing metric with a `false_positive` tag when we hit the fallback case (to see both how often it happens and how much time it adds to the process), but we don't track the individual times we hit a false positive value (which could be more than once per message). This adds a metric to do that, so that we can compare false positive hits to true positive hits (tracked by the existing  `grouping.value_parameterized` metric). If the rate is higher than we'd like, we can consider tightening the "IP-like" regex we use for our initial match.
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 22, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants