123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674 |
- import type {PlatformKey} from 'sentry/types/project';
- export enum PlatformCategory {
- FRONTEND = 0,
- MOBILE = 1,
- BACKEND = 2,
- SERVERLESS = 3,
- DESKTOP = 4,
- OTHER = 5,
- }
- // Mirrors `FRONTEND` in src/sentry/utils/platform_categories.py
- // When changing this file, make sure to keep src/sentry/utils/platform_categories.py in sync.
- export const frontend: PlatformKey[] = [
- 'dart',
- 'javascript',
- 'javascript-angular',
- 'javascript-angularjs',
- 'javascript-astro',
- 'javascript-backbone',
- 'javascript-ember',
- 'javascript-gatsby',
- 'javascript-nextjs',
- 'javascript-nuxt',
- 'javascript-react',
- 'javascript-remix',
- 'javascript-solid',
- 'javascript-solidstart',
- 'javascript-svelte',
- 'javascript-sveltekit',
- 'javascript-vue',
- 'unity',
- ];
- // Mirrors `MOBILE` in src/sentry/utils/platform_categories.py
- // When changing this file, make sure to keep src/sentry/utils/platform_categories.py in sync.
- export const mobile: PlatformKey[] = [
- 'android',
- 'apple-ios',
- 'capacitor',
- 'cordova',
- 'dart-flutter',
- 'dotnet-maui',
- 'dotnet-xamarin',
- 'flutter',
- 'ionic',
- 'javascript-capacitor',
- 'javascript-cordova',
- 'react-native',
- 'unity',
- 'unreal',
- // Old platforms
- 'java-android',
- 'cocoa-objc',
- 'cocoa-swift',
- ];
- // Mirrors `BACKEND` in src/sentry/utils/platform_categories.py
- // When changing this file, make sure to keep src/sentry/utils/platform_categories.py in sync.
- export const backend: PlatformKey[] = [
- 'bun',
- 'deno',
- 'dotnet',
- 'dotnet-aspnetcore',
- 'dotnet-aspnet',
- 'elixir',
- 'go',
- 'go-echo',
- 'go-fasthttp',
- 'go-fiber',
- 'go-gin',
- 'go-http',
- 'go-iris',
- 'go-martini',
- 'go-negroni',
- 'java',
- 'java-appengine',
- 'java-log4j',
- 'java-log4j2',
- 'java-logback',
- 'java-logging',
- 'java-spring',
- 'java-spring-boot',
- 'kotlin',
- 'native',
- 'node',
- 'node-express',
- 'node-koa',
- 'node-connect',
- 'perl',
- 'php',
- 'php-laravel',
- 'php-monolog',
- 'php-symfony',
- 'powershell',
- 'python',
- 'python-aiohttp',
- 'python-asgi',
- 'python-bottle',
- 'python-celery',
- 'python-chalice',
- 'python-django',
- 'python-falcon',
- 'python-fastapi',
- 'python-flask',
- 'python-pylons',
- 'python-pymongo',
- 'python-pyramid',
- 'python-quart',
- 'python-rq',
- 'python-sanic',
- 'python-starlette',
- 'python-tornado',
- 'python-tryton',
- 'python-wsgi',
- 'ruby',
- 'ruby-rails',
- 'ruby-rack',
- 'rust',
- ];
- // Mirrors `SERVERLESS` in src/sentry/utils/platform_categories.py
- // When changing this file, make sure to keep src/sentry/utils/platform_categories.py in sync.
- export const serverless: PlatformKey[] = [
- 'dotnet-awslambda',
- 'dotnet-gcpfunctions',
- 'node-awslambda',
- 'node-azurefunctions',
- 'node-gcpfunctions',
- 'python-awslambda',
- 'python-azurefunctions',
- 'python-gcpfunctions',
- 'python-serverless',
- ];
- // Mirrors `DESKTOP` in src/sentry/utils/platform_categories.py
- // When changing this file, make sure to keep src/sentry/utils/platform_categories.py in sync.
- export const desktop: PlatformKey[] = [
- 'apple-macos',
- 'dotnet-maui',
- 'dotnet-winforms',
- 'dotnet-wpf',
- 'dotnet',
- 'electron',
- 'flutter',
- 'java',
- 'javascript-electron',
- 'kotlin',
- 'minidump',
- 'native',
- 'native-breakpad',
- 'native-crashpad',
- 'native-minidump',
- 'native-qt',
- 'unity',
- 'unreal',
- ];
- export const sourceMaps: PlatformKey[] = [
- ...frontend,
- 'react-native',
- 'cordova',
- 'electron',
- ];
- export const performance: PlatformKey[] = [
- 'bun',
- 'deno',
- '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 tracing custom instrumentation guide docs for its nested frameworks
- // i.e. for a platform like `javascript-react`, we have a custom instrumentation guide for `react` that can be
- // accessed at `https://docs.sentry.io/platforms/javascript/guides/react/tracing/instrumentation/custom-instrumentation/`
- export const platformsWithNestedInstrumentationGuides: PlatformKey[] = [
- 'apple',
- 'apple-ios',
- 'apple-macos',
- 'dart',
- 'dart-flutter',
- 'go',
- 'go-echo',
- 'go-fasthttp',
- 'go-fiber',
- 'go-gin',
- 'go-http',
- 'go-iris',
- 'go-martini',
- 'go-negroni',
- 'java',
- 'java-android',
- 'java-appengine',
- 'java-log4j',
- 'java-log4j2',
- 'java-logback',
- 'java-logging',
- 'java-spring',
- 'java-spring-boot',
- 'javascript',
- 'javascript-angular',
- 'javascript-angularjs',
- 'javascript-astro',
- 'javascript-backbone',
- 'javascript-browser',
- 'javascript-capacitor',
- 'javascript-cordova',
- 'javascript-electron',
- 'javascript-ember',
- 'javascript-gatsby',
- 'javascript-nextjs',
- 'javascript-nuxt',
- 'javascript-react',
- 'javascript-remix',
- 'javascript-solid',
- 'javascript-svelte',
- 'javascript-sveltekit',
- 'javascript-vue',
- 'dotnet',
- 'dotnet-aspnet',
- 'dotnet-aspnetcore',
- 'dotnet-awslambda',
- 'dotnet-gcpfunctions',
- 'dotnet-google-cloud-functions',
- 'dotnet-maui',
- 'dotnet-uwp',
- 'dotnet-winforms',
- 'dotnet-wpf',
- 'dotnet-xamarin',
- 'php',
- 'php-laravel',
- 'php-monolog',
- 'php-symfony',
- 'php-symfony2',
- 'powershell',
- 'react-native',
- 'ruby',
- 'rust',
- 'unity',
- ];
- // List of platforms that have performance onboarding checklist content
- export const withPerformanceOnboarding: Set<PlatformKey> = new Set([
- 'javascript',
- 'javascript-react',
- 'javascript-nextjs',
- 'python',
- 'python-django',
- 'python-flask',
- 'php',
- 'node',
- ]);
- // 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',
- 'nintendo-switch',
- ]);
- export const profiling: PlatformKey[] = [
- // mobile
- 'android',
- 'apple-ios',
- // go
- 'go',
- // nodejs
- 'node',
- 'node-express',
- 'node-koa',
- 'node-connect',
- 'javascript-nextjs',
- 'javascript-nuxt',
- 'javascript-remix',
- 'javascript-solidstart',
- 'javascript-sveltekit',
- 'javascript',
- 'javascript-react',
- // react-native
- 'react-native',
- // python
- 'python',
- 'python-django',
- 'python-flask',
- 'python-fastapi',
- 'python-starlette',
- 'python-sanic',
- 'python-celery',
- 'python-bottle',
- 'python-pylons',
- 'python-pyramid',
- 'python-tornado',
- 'python-rq',
- 'python-aiohttp',
- 'python-chalice',
- 'python-falcon',
- 'python-quart',
- 'python-tryton',
- 'python-wsgi',
- 'python-serverless',
- // rust
- 'rust',
- // php
- 'php',
- 'php-laravel',
- 'php-symfony',
- // ruby
- 'ruby',
- 'ruby-rails',
- 'ruby-rack',
- ];
- export const releaseHealth: PlatformKey[] = [
- // frontend
- 'javascript',
- 'javascript-react',
- 'javascript-angular',
- 'javascript-angularjs',
- 'javascript-astro',
- 'javascript-backbone',
- 'javascript-ember',
- 'javascript-gatsby',
- 'javascript-vue',
- 'javascript-nextjs',
- 'javascript-nuxt',
- 'javascript-remix',
- 'javascript-solid',
- 'javascript-solidstart',
- 'javascript-svelte',
- 'javascript-sveltekit',
- 'android',
- 'apple-ios',
- 'cordova',
- 'javascript-cordova',
- 'react-native',
- 'flutter',
- 'dart-flutter',
- 'bun',
- 'deno',
- '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',
- 'python-pymongo',
- 'rust',
- 'apple-macos',
- 'native',
- 'native-crashpad',
- 'native-breakpad',
- 'native-qt',
- 'electron',
- 'javascript-electron',
- 'rust',
- 'php',
- 'php-laravel',
- 'php-symfony',
- 'dotnet',
- 'dotnet-awslambda',
- 'dotnet-gcpfunctions',
- 'dotnet-maui',
- 'dotnet-uwp',
- 'dotnet-wpf',
- 'dotnet-winforms',
- 'dotnet-xamarin',
- 'unity',
- ];
- // These are the backend platforms that can set up replay -- e.g. they can be set up via a linked JS framework or via JS loader.
- export const replayBackendPlatforms: readonly PlatformKey[] = [
- 'bun',
- 'deno',
- 'dotnet-aspnetcore',
- 'dotnet-aspnet',
- 'elixir',
- 'go-echo',
- 'go-fasthttp',
- 'go-fiber',
- 'go',
- 'go-gin',
- 'go-http',
- 'go-iris',
- 'go-martini',
- 'go-negroni',
- 'java-spring',
- 'java-spring-boot',
- 'node',
- 'node-express',
- 'php',
- 'php-laravel',
- 'php-symfony',
- 'python-aiohttp',
- 'python-bottle',
- 'python-django',
- 'python-falcon',
- 'python-fastapi',
- 'python-flask',
- 'python-pyramid',
- 'python-quart',
- 'python-sanic',
- 'python-starlette',
- 'python-tornado',
- 'ruby-rails',
- ];
- // These are the frontend platforms that can set up replay.
- export const replayFrontendPlatforms: readonly PlatformKey[] = [
- 'javascript',
- 'javascript-angular',
- 'javascript-astro',
- 'javascript-backbone',
- 'javascript-capacitor',
- 'capacitor',
- 'javascript-electron',
- 'electron',
- 'javascript-ember',
- 'javascript-gatsby',
- 'javascript-nextjs',
- 'javascript-nuxt',
- 'javascript-react',
- 'javascript-remix',
- 'javascript-solid',
- 'javascript-solidstart',
- 'javascript-svelte',
- 'javascript-sveltekit',
- 'javascript-vue',
- ];
- // These are the mobile platforms that can set up replay.
- export const replayMobilePlatforms: PlatformKey[] = [
- 'android',
- 'apple-ios',
- 'react-native',
- 'flutter',
- ];
- // These are all the platforms that can set up replay.
- export const replayPlatforms: readonly PlatformKey[] = [
- ...replayFrontendPlatforms,
- ...replayBackendPlatforms,
- ...replayMobilePlatforms,
- ];
- /**
- * The list of platforms for which we have created onboarding instructions.
- * Should be a subset of the list of `replayPlatforms`.
- */
- export const replayOnboardingPlatforms: readonly PlatformKey[] = [
- ...replayFrontendPlatforms.filter(p => !['javascript-backbone'].includes(p)),
- ...replayBackendPlatforms,
- ...replayMobilePlatforms,
- ];
- // These are the supported replay platforms that can also be set up using the JS loader.
- export const replayJsLoaderInstructionsPlatformList: readonly PlatformKey[] = [
- 'javascript',
- ...replayBackendPlatforms,
- ];
- // Feedback platforms that show only NPM widget setup instructions (no loader)
- export const feedbackNpmPlatforms: readonly PlatformKey[] = [
- 'ionic',
- ...replayFrontendPlatforms,
- ];
- // Feedback platforms that show widget instructions (both NPM & loader)
- export const feedbackWidgetPlatforms: readonly PlatformKey[] = [
- ...feedbackNpmPlatforms,
- ...replayBackendPlatforms,
- ];
- // Feedback platforms that only show crash API instructions
- export const feedbackCrashApiPlatforms: readonly PlatformKey[] = [
- 'android',
- 'apple',
- 'apple-macos',
- 'apple-ios',
- 'dart',
- 'dotnet',
- 'dotnet-awslambda',
- 'dotnet-gcpfunctions',
- 'dotnet-maui',
- 'dotnet-uwp',
- 'dotnet-wpf',
- 'dotnet-winforms',
- 'dotnet-xamarin',
- 'flutter',
- 'java',
- 'java-log4j2',
- 'java-logback',
- 'kotlin',
- 'node-koa',
- 'react-native',
- 'unity',
- 'unreal',
- ];
- // Feedback platforms that default to the web API
- export const feedbackWebApiPlatforms: readonly PlatformKey[] = [
- 'cordova',
- 'ruby-rack',
- 'ruby',
- 'rust',
- 'native',
- 'native-qt',
- 'node-awslambda',
- 'node-azurefunctions',
- 'node-connect',
- 'node-gcpfunctions',
- 'minidump',
- 'python-asgi',
- 'python-awslambda',
- 'python-celery',
- 'python-chalice',
- 'python-gcpfunctions',
- 'python-pymongo',
- 'python-pylons',
- 'python',
- 'python-rq',
- 'python-serverless',
- 'python-tryton',
- 'python-wsgi',
- ];
- // All feedback onboarding platforms
- export const feedbackOnboardingPlatforms: readonly PlatformKey[] = [
- ...feedbackWebApiPlatforms,
- ...feedbackWidgetPlatforms,
- ...feedbackCrashApiPlatforms,
- ];
- const customMetricBackendPlatforms: readonly PlatformKey[] = [
- 'bun',
- 'dart',
- 'deno',
- 'dotnet',
- 'dotnet-aspnet',
- 'dotnet-aspnetcore',
- 'dotnet-awslambda',
- 'dotnet-gcpfunctions',
- 'dotnet-maui',
- 'dotnet-uwp',
- 'dotnet-winforms',
- 'dotnet-wpf',
- 'java',
- 'java-appengine',
- 'java-log4j',
- 'java-log4j2',
- 'java-logback',
- 'java-logging',
- 'java-spring',
- 'java-spring-boot',
- 'php',
- 'php-laravel',
- // TODO: Enable once metrics are available for Symfony
- // 'php-symfony',
- 'python',
- 'python-aiohttp',
- 'python-asgi',
- 'python-awslambda',
- 'python-bottle',
- 'python-celery',
- 'python-chalice',
- 'python-django',
- 'python-falcon',
- 'python-fastapi',
- 'python-flask',
- 'python-gcpfunctions',
- 'python-pymongo',
- 'python-pylons',
- 'python-pyramid',
- 'python-quart',
- 'python-rq',
- 'python-sanic',
- 'python-serverless',
- 'python-starlette',
- 'python-tornado',
- 'python-tryton',
- 'python-wsgi',
- 'rust',
- 'node',
- 'node-awslambda',
- 'node-azurefunctions',
- 'node-connect',
- 'node-express',
- 'node-gcpfunctions',
- 'node-koa',
- 'ruby',
- 'ruby-rails',
- 'ruby-rack',
- ];
- const customMetricFrontendPlatforms: readonly PlatformKey[] = [
- 'android',
- 'apple-ios',
- 'electron',
- 'flutter',
- 'java-android',
- 'javascript-angular',
- 'javascript-astro',
- 'javascript-backbone',
- 'javascript-capacitor',
- 'javascript-electron',
- 'javascript-ember',
- 'javascript-gatsby',
- 'javascript-nextjs',
- 'javascript-nuxt',
- 'javascript-react',
- 'javascript-remix',
- 'javascript-solid',
- 'javascript-solidstart',
- 'javascript-svelte',
- 'javascript-sveltekit',
- 'javascript-vue',
- 'javascript',
- 'react-native',
- 'unity',
- ];
- // These are all the platforms that can set up custom metrics.
- export const customMetricPlatforms: readonly PlatformKey[] = [
- ...customMetricFrontendPlatforms,
- ...customMetricBackendPlatforms,
- ];
- /**
- * The list of platforms for which we have created onboarding instructions.
- * Should be a subset of the list of `customMetricPlatforms`.
- */
- export const customMetricOnboardingPlatforms: readonly PlatformKey[] =
- customMetricPlatforms.filter(
- p =>
- // Legacy platforms that do not have in-product docs
- ![
- 'javascript-backbone',
- 'javascript-capacitor',
- 'javascript-electron',
- 'python-pylons',
- 'python-tryton',
- ].includes(p)
- );
|