From bd4d63ca00c8d50dfbed84ce8a4205315675583d Mon Sep 17 00:00:00 2001 From: Ivan Dlugos <6349682+vaind@users.noreply.github.com> Date: Fri, 16 Jun 2023 12:18:25 +0200 Subject: [PATCH] feat: add Go to the profiling wizard (#51050) Related to https://github.com/getsentry/sentry-docs/pull/7127 - adds Go Profiling wizard --- .../app/components/profiling/ProfilingOnboarding/util.ts | 1 + static/app/data/platformCategories.tsx | 2 ++ static/app/utils/profiling/platforms.tsx | 7 +++++++ 3 files changed, 10 insertions(+) diff --git a/static/app/components/profiling/ProfilingOnboarding/util.ts b/static/app/components/profiling/ProfilingOnboarding/util.ts index 6ef51958aaf2de..0d61afb5993783 100644 --- a/static/app/components/profiling/ProfilingOnboarding/util.ts +++ b/static/app/components/profiling/ProfilingOnboarding/util.ts @@ -28,6 +28,7 @@ export const supportedPlatformExpectedDocKeys: Record< '3-configure-profiling', '4-upload', ], + go: ['0-alert', '1-install', '2-configure-performance', '3-configure-profiling'], node: ['1-install', '2-configure-performance', '3-configure-profiling'], python: ['1-install', '2-configure-performance', '3-configure-profiling'], php: ['1-install', '2-configure-performance', '3-configure-profiling'], diff --git a/static/app/data/platformCategories.tsx b/static/app/data/platformCategories.tsx index 058a205bce7015..576ac5d74681c8 100644 --- a/static/app/data/platformCategories.tsx +++ b/static/app/data/platformCategories.tsx @@ -220,6 +220,8 @@ export const profiling: PlatformKey[] = [ // mobile 'android', 'apple-ios', + // go + 'go', // nodejs 'node', 'node-express', diff --git a/static/app/utils/profiling/platforms.tsx b/static/app/utils/profiling/platforms.tsx index a25518307ee69d..4c59728fefae95 100644 --- a/static/app/utils/profiling/platforms.tsx +++ b/static/app/utils/profiling/platforms.tsx @@ -5,6 +5,7 @@ export const supportedProfilingPlatforms = profiling; export const supportedProfilingPlatformSDKs = [ 'android', 'apple-ios', + 'go', 'node', 'python', 'php', @@ -36,6 +37,12 @@ export function getDocsPlatformSDKForPlatform( if (platform === 'apple-ios') { return 'apple-ios'; } + + // Go + if (platform === 'go') { + return 'go'; + } + // Javascript if (platform.startsWith('node')) { return 'node';