Skip to content

Commit

Permalink
feat: add Go to the profiling wizard (#51050)
Browse files Browse the repository at this point in the history
Related to getsentry/sentry-docs#7127 - adds Go
Profiling wizard
  • Loading branch information
vaind authored Jun 16, 2023
1 parent 13ef106 commit bd4d63c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand Down
2 changes: 2 additions & 0 deletions static/app/data/platformCategories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,8 @@ export const profiling: PlatformKey[] = [
// mobile
'android',
'apple-ios',
// go
'go',
// nodejs
'node',
'node-express',
Expand Down
7 changes: 7 additions & 0 deletions static/app/utils/profiling/platforms.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export const supportedProfilingPlatforms = profiling;
export const supportedProfilingPlatformSDKs = [
'android',
'apple-ios',
'go',
'node',
'python',
'php',
Expand Down Expand Up @@ -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';
Expand Down

0 comments on commit bd4d63c

Please sign in to comment.