Browse Source

feat(issues-platform): Register profiling issue options in admin UI (#44550)

This PR adds UI fields for profiling issues ingestion for LA, EA and GA
Dameli Ushbayeva 2 years ago
parent
commit
6078923922
2 changed files with 33 additions and 0 deletions
  1. 9 0
      static/app/views/admin/adminSettings.tsx
  2. 24 0
      static/app/views/admin/options.tsx

+ 9 - 0
static/app/views/admin/adminSettings.tsx

@@ -43,6 +43,9 @@ const optionsAvailable = [
   'performance.issues.render_blocking_assets.la-rollout',
   'performance.issues.render_blocking_assets.ea-rollout',
   'performance.issues.render_blocking_assets.ga-rollout',
+  'profile.issues.blocked_main_thread-ingest.la-rollout',
+  'profile.issues.blocked_main_thread-ingest.ea-rollout',
+  'profile.issues.blocked_main_thread-ingest.ga-rollout',
 ];
 
 type Field = ReturnType<typeof getOption>;
@@ -168,6 +171,12 @@ export default class AdminSettings extends AsyncView<{}, State> {
               {fields['performance.issues.render_blocking_assets.ea-rollout']}
               {fields['performance.issues.render_blocking_assets.ga-rollout']}
             </Panel>
+            <Panel>
+              <PanelHeader>Profiling Issues - Block Main Thread Detector</PanelHeader>
+              {fields['profile.issues.blocked_main_thread-ingest.la-rollout']}
+              {fields['profile.issues.blocked_main_thread-ingest.ea-rollout']}
+              {fields['profile.issues.blocked_main_thread-ingest.ga-rollout']}
+            </Panel>
           </Feature>
         </Form>
       </div>

+ 24 - 0
static/app/views/admin/options.tsx

@@ -339,6 +339,30 @@ const performanceOptionDefinitions: Field[] = [
       'Controls the rate at which performance problems are detected by the large render blocking asset detector for GA organizations.'
     ),
   },
+  {
+    key: 'profile.issues.blocked_main_thread-ingest.la-rollout',
+    label: t('Limited Availability Detection Rate'),
+    help: t(
+      'Controls the rate at which performance problems are detected by the blocked main thread profiling detector for LA organizations.'
+    ),
+    ...HIGH_THROUGHPUT_RATE_OPTION,
+  },
+  {
+    key: 'profile.issues.blocked_main_thread-ingest.ea-rollout',
+    label: t('Early Adopter Detection Rate'),
+    help: t(
+      'Controls the rate at which performance problems are detected by the blocked main thread profiling detector for EA organizations.'
+    ),
+    ...HIGH_THROUGHPUT_RATE_OPTION,
+  },
+  {
+    key: 'profile.issues.blocked_main_thread-ingest.ga-rollout',
+    label: t('General Availability Detection Rate'),
+    help: t(
+      'Controls the rate at which performance problems are detected by the blocked main thread profiling detector for GA organizations.'
+    ),
+    ...HIGH_THROUGHPUT_RATE_OPTION,
+  },
 ];
 
 // This are ordered based on their display order visually