Browse Source

fix(perf_issues): Don't sample `performance.performance_issue.performance_problem_emitted` (#38907)

The volume of data here is so low that datadogs extrapolation makes the
stat unusable. Just bumping this to not be sampled
Dan Fuller 2 years ago
parent
commit
f69038cd46
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/sentry/utils/performance_issues/performance_detection.py

+ 3 - 1
src/sentry/utils/performance_issues/performance_detection.py

@@ -282,7 +282,9 @@ def _detect_performance_problems(data: Event, sdk_span: Any) -> List[Performance
 
     if len(performance_problems) > 0:
         metrics.incr(
-            "performance.performance_issue.performance_problem_emitted", len(performance_problems)
+            "performance.performance_issue.performance_problem_emitted",
+            len(performance_problems),
+            sample_rate=1.0,
         )
 
     return performance_problems