Browse Source

fix(profiling): add flutter and dart-flutter to profiling onboarding (#59210)

Resolves: https://github.com/getsentry/sentry/issues/59198
Jonas 1 year ago
parent
commit
d077424e54

+ 7 - 0
static/app/components/profiling/ProfilingOnboarding/util.ts

@@ -69,6 +69,13 @@ export const supportedPlatformExpectedDocKeys: Record<
     '2-configure-performance',
     '3-configure-profiling',
   ],
+  flutter: ['0-alert', '1-install', '2-configure-performance', '3-configure-profiling'],
+  'dart-flutter': [
+    '0-alert',
+    '1-install',
+    '2-configure-performance',
+    '3-configure-profiling',
+  ],
 };
 
 function makeDocKey(platformId: SupportedProfilingPlatformSDK, key: string) {

+ 9 - 0
static/app/utils/profiling/platforms.tsx

@@ -3,6 +3,8 @@ import {Project} from 'sentry/types/project';
 const supportedProfilingPlatformSDKs = [
   'android',
   'apple-ios',
+  'flutter',
+  'dart-flutter',
   'go',
   'node',
   'python',
@@ -63,6 +65,13 @@ export function getDocsPlatformSDKForPlatform(
     return 'javascript-react';
   }
 
+  if (platform === 'dart-flutter') {
+    return 'dart-flutter';
+  }
+  if (platform === 'flutter') {
+    return 'flutter';
+  }
+
   // Python
   if (platform.startsWith('python')) {
     return 'python';