123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368 |
- // Mirrors src/sentry/utils/platform_categories.py
- // When changing this file, make sure to keep src/sentry/utils/platform_categories.py in sync.
- import {t} from 'sentry/locale';
- export enum PlatformCategory {
- FRONTEND,
- MOBILE,
- BACKEND,
- SERVERLESS,
- DESKTOP,
- OTHER,
- }
- export const popularPlatformCategories = [
- 'javascript',
- 'javascript-react',
- 'javascript-nextjs',
- 'python-django',
- 'python',
- 'python-flask',
- 'python-fastapi',
- 'ruby-rails',
- 'node-express',
- 'php-laravel',
- 'java',
- 'java-spring-boot',
- 'dotnet',
- 'dotnet-aspnetcore',
- 'csharp',
- 'go',
- 'php',
- 'ruby',
- 'node',
- 'react-native',
- 'javascript-angular',
- 'javascript-vue',
- 'android',
- 'apple-ios',
- 'flutter',
- 'dart-flutter',
- 'unity',
- ] as const;
- export const frontend = [
- 'dart',
- 'javascript',
- 'javascript-react',
- 'javascript-angular',
- 'javascript-angularjs',
- 'javascript-backbone',
- 'javascript-ember',
- 'javascript-gatsby',
- 'javascript-vue',
- 'javascript-nextjs',
- 'javascript-remix',
- 'javascript-svelte',
- 'javascript-sveltekit',
- 'unity',
- ] as const;
- export const mobile = [
- 'android',
- 'apple-ios',
- 'cordova',
- 'capacitor',
- 'javascript-cordova',
- 'javascript-capacitor',
- 'ionic',
- 'react-native',
- 'flutter',
- 'dart-flutter',
- 'unity',
- 'dotnet-maui',
- 'dotnet-xamarin',
- 'unreal',
- // Old platforms
- 'java-android',
- 'cocoa-objc',
- 'cocoa-swift',
- ] as const;
- export const backend = [
- 'dotnet',
- 'dotnet-aspnetcore',
- 'dotnet-aspnet',
- 'elixir',
- 'go',
- 'go-http',
- 'java',
- 'java-appengine',
- 'java-log4j',
- 'java-log4j2',
- 'java-logback',
- 'java-logging',
- 'java-spring',
- 'java-spring-boot',
- 'native',
- 'node',
- 'node-express',
- 'node-koa',
- 'node-connect',
- 'perl',
- 'php',
- 'php-laravel',
- 'php-monolog',
- 'php-symfony2',
- 'python',
- 'python-django',
- 'python-flask',
- 'python-fastapi',
- 'python-starlette',
- 'python-sanic',
- 'python-celery',
- 'python-bottle',
- 'python-pylons',
- 'python-pyramid',
- 'python-tornado',
- 'python-rq',
- 'ruby',
- 'ruby-rails',
- 'ruby-rack',
- 'rust',
- 'kotlin',
- ] as const;
- export const serverless = [
- 'python-awslambda',
- 'python-azurefunctions',
- 'python-gcpfunctions',
- 'node-awslambda',
- 'node-azurefunctions',
- 'node-gcpfunctions',
- 'dotnet-awslambda',
- 'dotnet-gcpfunctions',
- ] as const;
- export const desktop = [
- 'apple-macos',
- 'dotnet',
- 'dotnet-winforms',
- 'dotnet-wpf',
- 'dotnet-maui',
- 'java',
- 'electron',
- 'javascript-electron',
- 'native',
- 'native-crashpad',
- 'native-breakpad',
- 'native-minidump',
- 'native-qt',
- 'minidump',
- 'unity',
- 'flutter',
- 'kotlin',
- 'unreal',
- ] as const;
- const categoryList = [
- {id: 'popular', name: t('Popular'), platforms: popularPlatformCategories},
- {id: 'browser', name: t('Browser'), platforms: frontend},
- {id: 'server', name: t('Server'), platforms: backend},
- {id: 'mobile', name: t('Mobile'), platforms: mobile},
- {id: 'desktop', name: t('Desktop'), platforms: desktop},
- {id: 'serverless', name: t('Serverless'), platforms: serverless},
- ] as const;
- export const sourceMaps: PlatformKey[] = [
- ...frontend,
- 'react-native',
- 'cordova',
- 'electron',
- ];
- export const tracing = [
- 'python-tracing',
- 'node-tracing',
- 'react-native-tracing',
- ] as const;
- export const performance = [
- 'javascript',
- 'javascript-ember',
- 'javascript-react',
- 'javascript-vue',
- 'php',
- 'php-laravel',
- 'python',
- 'python-django',
- 'python-flask',
- 'python-fastapi',
- 'python-starlette',
- 'python-sanic',
- 'python-celery',
- 'python-bottle',
- 'python-pylons',
- 'python-pyramid',
- 'python-tornado',
- 'python-rq',
- 'node',
- 'node-express',
- 'node-koa',
- 'node-connect',
- ];
- // List of platforms that have performance onboarding checklist content
- export const withPerformanceOnboarding: Set<PlatformKey> = new Set([
- 'javascript',
- 'javascript-react',
- ]);
- // List of platforms that do not have performance support. We make use of this list in the product to not provide any Performance
- // views such as Performance onboarding checklist.
- export const withoutPerformanceSupport: Set<PlatformKey> = new Set([
- 'elixir',
- 'minidump',
- ]);
- export const profiling: PlatformKey[] = [
- // mobile
- 'android',
- 'apple-ios',
- // go
- 'go',
- // nodejs
- 'node',
- 'node-express',
- 'node-koa',
- 'node-connect',
- 'javascript-nextjs',
- 'javascript-remix',
- 'javascript-sveltekit',
- // python
- 'python',
- 'python-django',
- 'python-flask',
- 'python-fastapi',
- 'python-starlette',
- 'python-sanic',
- 'python-celery',
- 'python-bottle',
- 'python-pylons',
- 'python-pyramid',
- 'python-tornado',
- 'python-rq',
- // rust
- 'rust',
- // php
- 'php',
- 'php-laravel',
- 'php-symfony2',
- // ruby
- 'ruby',
- 'ruby-rails',
- 'ruby-rack',
- ];
- export const releaseHealth: PlatformKey[] = [
- // frontend
- 'javascript',
- 'javascript-react',
- 'javascript-angular',
- 'javascript-angularjs',
- 'javascript-backbone',
- 'javascript-ember',
- 'javascript-gatsby',
- 'javascript-vue',
- 'javascript-nextjs',
- 'javascript-remix',
- 'javascript-svelte',
- 'javascript-sveltekit',
- // mobile
- 'android',
- 'apple-ios',
- 'cordova',
- 'javascript-cordova',
- 'react-native',
- 'flutter',
- 'dart-flutter',
- // backend
- 'native',
- 'node',
- 'node-express',
- 'node-koa',
- 'node-connect',
- 'python',
- 'python-django',
- 'python-flask',
- 'python-fastapi',
- 'python-starlette',
- 'python-sanic',
- 'python-celery',
- 'python-bottle',
- 'python-pylons',
- 'python-pyramid',
- 'python-tornado',
- 'python-rq',
- 'rust',
- // serverless
- // desktop
- 'apple-macos',
- 'native',
- 'native-crashpad',
- 'native-breakpad',
- 'native-qt',
- ];
- export const replayPlatforms: readonly PlatformKey[] = [
- 'javascript-angular',
- // 'javascript-angularjs', // Unsupported, angularjs requires the v6.x core SDK
- 'javascript-backbone',
- 'javascript-ember',
- 'javascript-gatsby',
- 'javascript-nextjs',
- 'javascript-react',
- 'javascript-remix',
- 'javascript-svelte',
- 'javascript-sveltekit',
- 'javascript-vue',
- 'javascript',
- ];
- /**
- * The list of platforms for which we have created onboarding instructions.
- * Should be a subset of the list of `replayPlatforms`.
- * This should match sentry-docs: `/src/wizard/${platform}/replay-onboarding/${subPlatform}/`.
- * See: https://github.com/getsentry/sentry-docs/tree/master/src/wizard/javascript/replay-onboarding
- */
- export const replayOnboardingPlatforms: readonly PlatformKey[] = [
- 'javascript-angular',
- // 'javascript-angularjs', // Unsupported, angularjs requires the v6.x core SDK
- // 'javascript-backbone', // No docs yet
- 'javascript-ember',
- 'javascript-gatsby',
- 'javascript-nextjs',
- 'javascript-react',
- 'javascript-remix',
- 'javascript-svelte',
- 'javascript-sveltekit',
- 'javascript-vue',
- 'javascript',
- ];
- /**
- * Additional aliases used for filtering in the platform picker
- */
- export const filterAliases: Partial<Record<PlatformKey, string[]>> = {
- native: ['cpp', 'c++'],
- };
- export type PlatformKey =
- | (typeof popularPlatformCategories)[number]
- | (typeof frontend)[number]
- | (typeof mobile)[number]
- | (typeof backend)[number]
- | (typeof desktop)[number]
- | (typeof tracing)[number]
- | (typeof serverless)[number]
- | 'other';
- export default categoryList;
- export type Platform = {
- key: PlatformKey;
- id?: string;
- link?: string | null;
- name?: string;
- };
|