From bf93ccaf4c014286463d969b92d974eb9cdcb83a Mon Sep 17 00:00:00 2001 From: Dominik Buszowiecki Date: Wed, 4 Jan 2023 15:46:49 -0500 Subject: [PATCH 1/2] feat(perf-issues): Add feature flag for consecutive db issue --- src/sentry/conf/server.py | 2 ++ src/sentry/features/__init__.py | 1 + 2 files changed, 3 insertions(+) diff --git a/src/sentry/conf/server.py b/src/sentry/conf/server.py index 1a1b46e95f6355..7d2a39970248f2 100644 --- a/src/sentry/conf/server.py +++ b/src/sentry/conf/server.py @@ -1130,6 +1130,8 @@ def SOCIAL_AUTH_DEFAULT_USERNAME(): "organizations:performance-mep-bannerless-ui": False, # Enable updated landing page widget designs "organizations:performance-new-widget-designs": False, + # Enable consecutive db performance issue type + "organizations:performance-consecutive-db-issue": False, # Enable slow DB performance issue type "organizations:performance-slow-db-issue": False, # Enable the new Related Events feature diff --git a/src/sentry/features/__init__.py b/src/sentry/features/__init__.py index 29ff2ceef3e726..db17fba90705b5 100644 --- a/src/sentry/features/__init__.py +++ b/src/sentry/features/__init__.py @@ -125,6 +125,7 @@ default_manager.add("organizations:performance-mep-bannerless-ui", OrganizationFeature, True) default_manager.add("organizations:performance-mep-reintroduce-histograms", OrganizationFeature, True) default_manager.add("organizations:performance-new-widget-designs", OrganizationFeature, True) +default_manager.add("organizations:performance-consecutive-db-issue", OrganizationFeature, True) default_manager.add("organizations:performance-slow-db-issue", OrganizationFeature, True) default_manager.add("organizations:profiling", OrganizationFeature) default_manager.add("organizations:profiling-flamechart-spans", OrganizationFeature, True) From 3d496301e098bf9640afc31c8097c257cf4df645 Mon Sep 17 00:00:00 2001 From: Dominik Buszowiecki Date: Thu, 5 Jan 2023 13:59:56 -0500 Subject: [PATCH 2/2] add rollout options --- src/sentry/options/defaults.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/sentry/options/defaults.py b/src/sentry/options/defaults.py index 1c8e910b4a429c..c4ce82ba60f5ce 100644 --- a/src/sentry/options/defaults.py +++ b/src/sentry/options/defaults.py @@ -557,6 +557,10 @@ register("sentry-metrics.releasehealth.abnormal-mechanism-extraction-rate", default=0.0) # Individual system-wide options in case we need to turn off specific detectors for load concerns, ignoring the set project options. +register("performance.issues.consecutive_db.problem-creation", default=0.0) +register("performance.issues.consecutive_db.la-rollout", default=0.0) +register("performance.issues.consecutive_db.ea-rollout", default=0.0) +register("performance.issues.consecutive_db.ga-rollout", default=0.0) register("performance.issues.n_plus_one_db.problem-detection", default=0.0) register("performance.issues.n_plus_one_db.problem-creation", default=0.0) register("performance.issues.n_plus_one_db_ext.problem-creation", default=0.0)