Browse Source

feat(trends): Create a new feature flag (#49125)

Register a new feature flag to be used internally for trends debugging
Dameli Ushbayeva 1 year ago
parent
commit
2060afb6ce
2 changed files with 3 additions and 0 deletions
  1. 2 0
      src/sentry/conf/server.py
  2. 1 0
      src/sentry/features/__init__.py

+ 2 - 0
src/sentry/conf/server.py

@@ -1384,6 +1384,8 @@ SENTRY_FEATURES = {
     "organizations:performance-metrics-backed-transaction-summary": False,
     # Enable new trends
     "organizations:performance-new-trends": False,
+    # Enable debug views for trendsv2 to be used internally
+    "organizations:performance-trendsv2-dev-only": False,
     # Enable consecutive db performance issue type
     "organizations:performance-consecutive-db-issue": False,
     # Enable consecutive http performance issue type

+ 1 - 0
src/sentry/features/__init__.py

@@ -141,6 +141,7 @@ default_manager.add("organizations:performance-mep-bannerless-ui", OrganizationF
 default_manager.add("organizations:performance-mep-reintroduce-histograms", OrganizationFeature, FeatureHandlerStrategy.REMOTE)
 default_manager.add("organizations:performance-new-widget-designs", OrganizationFeature, FeatureHandlerStrategy.REMOTE)
 default_manager.add("organizations:performance-new-trends", OrganizationFeature, FeatureHandlerStrategy.REMOTE)
+default_manager.add("organizations:performance-trendsv2-dev-only", OrganizationFeature, FeatureHandlerStrategy.REMOTE)
 default_manager.add("organizations:performance-metrics-backed-transaction-summary", OrganizationFeature, FeatureHandlerStrategy.REMOTE)
 default_manager.add("organizations:performance-slow-db-issue", OrganizationFeature, FeatureHandlerStrategy.INTERNAL)
 default_manager.add("organizations:profiling", OrganizationFeature, FeatureHandlerStrategy.INTERNAL)