Browse Source

feat(stats-detectors): Add stricter requirements for breakpoint detection (#58627)

- add % threshold of 50%
- add ms threshold of 200ms
- add last 12 hour check to avoid creating issues out of spikes

Fixes https://github.com/getsentry/sentry/issues/58597,
https://github.com/getsentry/sentry/issues/56028
Dameli Ushbayeva 1 year ago
parent
commit
0459ae1a94
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/sentry/tasks/statistical_detectors.py

+ 3 - 0
src/sentry/tasks/statistical_detectors.py

@@ -233,6 +233,9 @@ def _detect_transaction_change_points(
             # which was originally intended to detect a gradual regression
             # for the trends use case. That does not apply here.
             "allow_midpoint": "0",
+            "trend_percentage()": 0.5,
+            "min_change()": 200_000_000,
+            "validate_tail_hours": 12,
         }
 
         try: