platformCategories.tsx 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334
  1. // Mirrors src/sentry/utils/platform_categories.py
  2. // When changing this file, make sure to keep src/sentry/utils/platform_categories.py in sync.
  3. import {PlatformKey} from 'sentry/types';
  4. export enum PlatformCategory {
  5. FRONTEND,
  6. MOBILE,
  7. BACKEND,
  8. SERVERLESS,
  9. DESKTOP,
  10. OTHER,
  11. }
  12. export const frontend: PlatformKey[] = [
  13. 'dart',
  14. 'javascript',
  15. 'javascript-react',
  16. 'javascript-angular',
  17. 'javascript-angularjs',
  18. 'javascript-backbone',
  19. 'javascript-ember',
  20. 'javascript-gatsby',
  21. 'javascript-vue',
  22. 'javascript-nextjs',
  23. 'javascript-remix',
  24. 'javascript-svelte',
  25. 'javascript-sveltekit',
  26. 'unity',
  27. ];
  28. export const mobile: PlatformKey[] = [
  29. 'android',
  30. 'apple-ios',
  31. 'cordova',
  32. 'capacitor',
  33. 'javascript-cordova',
  34. 'javascript-capacitor',
  35. 'ionic',
  36. 'react-native',
  37. 'flutter',
  38. 'dart-flutter',
  39. 'unity',
  40. 'dotnet-maui',
  41. 'dotnet-xamarin',
  42. 'unreal',
  43. // Old platforms
  44. 'java-android',
  45. 'cocoa-objc',
  46. 'cocoa-swift',
  47. ];
  48. export const backend: PlatformKey[] = [
  49. 'bun',
  50. 'dotnet',
  51. 'dotnet-aspnetcore',
  52. 'dotnet-aspnet',
  53. 'elixir',
  54. 'go',
  55. 'go-http',
  56. 'java',
  57. 'java-appengine',
  58. 'java-log4j',
  59. 'java-log4j2',
  60. 'java-logback',
  61. 'java-logging',
  62. 'java-spring',
  63. 'java-spring-boot',
  64. 'native',
  65. 'node',
  66. 'node-express',
  67. 'node-koa',
  68. 'node-connect',
  69. 'perl',
  70. 'php',
  71. 'php-laravel',
  72. 'php-monolog',
  73. 'php-symfony',
  74. 'python',
  75. 'python-django',
  76. 'python-flask',
  77. 'python-fastapi',
  78. 'python-starlette',
  79. 'python-sanic',
  80. 'python-celery',
  81. 'python-aiohttp',
  82. 'python-chalice',
  83. 'python-falcon',
  84. 'python-quart',
  85. 'python-tryton',
  86. 'python-wsgi',
  87. 'python-asgi',
  88. 'python-bottle',
  89. 'python-pylons',
  90. 'python-pyramid',
  91. 'python-tornado',
  92. 'python-rq',
  93. 'python-pymongo',
  94. 'ruby',
  95. 'ruby-rails',
  96. 'ruby-rack',
  97. 'rust',
  98. 'kotlin',
  99. ];
  100. export const serverless: PlatformKey[] = [
  101. 'python-awslambda',
  102. 'python-azurefunctions',
  103. 'python-gcpfunctions',
  104. 'python-serverless',
  105. 'node-awslambda',
  106. 'node-azurefunctions',
  107. 'node-gcpfunctions',
  108. 'dotnet-awslambda',
  109. 'dotnet-gcpfunctions',
  110. ];
  111. export const desktop: PlatformKey[] = [
  112. 'apple-macos',
  113. 'dotnet',
  114. 'dotnet-winforms',
  115. 'dotnet-wpf',
  116. 'dotnet-maui',
  117. 'java',
  118. 'electron',
  119. 'javascript-electron',
  120. 'native',
  121. 'native-crashpad',
  122. 'native-breakpad',
  123. 'native-minidump',
  124. 'native-qt',
  125. 'minidump',
  126. 'unity',
  127. 'flutter',
  128. 'kotlin',
  129. 'unreal',
  130. ];
  131. export const sourceMaps: PlatformKey[] = [
  132. ...frontend,
  133. 'react-native',
  134. 'cordova',
  135. 'electron',
  136. ];
  137. export const tracing: PlatformKey[] = [
  138. 'python-tracing',
  139. 'node-tracing',
  140. 'react-native-tracing',
  141. ];
  142. export const performance: PlatformKey[] = [
  143. 'bun',
  144. 'javascript',
  145. 'javascript-ember',
  146. 'javascript-react',
  147. 'javascript-vue',
  148. 'php',
  149. 'php-laravel',
  150. 'python',
  151. 'python-django',
  152. 'python-flask',
  153. 'python-fastapi',
  154. 'python-starlette',
  155. 'python-sanic',
  156. 'python-celery',
  157. 'python-bottle',
  158. 'python-pylons',
  159. 'python-pyramid',
  160. 'python-tornado',
  161. 'python-rq',
  162. 'node',
  163. 'node-express',
  164. 'node-koa',
  165. 'node-connect',
  166. ];
  167. // List of platforms that have performance onboarding checklist content
  168. export const withPerformanceOnboarding: Set<PlatformKey> = new Set([
  169. 'javascript',
  170. 'javascript-react',
  171. ]);
  172. // List of platforms that do not have performance support. We make use of this list in the product to not provide any Performance
  173. // views such as Performance onboarding checklist.
  174. export const withoutPerformanceSupport: Set<PlatformKey> = new Set([
  175. 'elixir',
  176. 'minidump',
  177. ]);
  178. export const profiling: PlatformKey[] = [
  179. // mobile
  180. 'android',
  181. 'apple-ios',
  182. // go
  183. 'go',
  184. // nodejs
  185. 'node',
  186. 'node-express',
  187. 'node-koa',
  188. 'node-connect',
  189. 'javascript-nextjs',
  190. 'javascript-remix',
  191. 'javascript-sveltekit',
  192. 'javascript',
  193. 'javascript-react',
  194. // react-native
  195. 'react-native',
  196. // python
  197. 'python',
  198. 'python-django',
  199. 'python-flask',
  200. 'python-fastapi',
  201. 'python-starlette',
  202. 'python-sanic',
  203. 'python-celery',
  204. 'python-bottle',
  205. 'python-pylons',
  206. 'python-pyramid',
  207. 'python-tornado',
  208. 'python-rq',
  209. 'python-aiohttp',
  210. 'python-chalice',
  211. 'python-falcon',
  212. 'python-quart',
  213. 'python-tryton',
  214. 'python-wsgi',
  215. 'python-serverless',
  216. // rust
  217. 'rust',
  218. // php
  219. 'php',
  220. 'php-laravel',
  221. 'php-symfony',
  222. // ruby
  223. 'ruby',
  224. 'ruby-rails',
  225. 'ruby-rack',
  226. ];
  227. export const releaseHealth: PlatformKey[] = [
  228. // frontend
  229. 'javascript',
  230. 'javascript-react',
  231. 'javascript-angular',
  232. 'javascript-angularjs',
  233. 'javascript-backbone',
  234. 'javascript-ember',
  235. 'javascript-gatsby',
  236. 'javascript-vue',
  237. 'javascript-nextjs',
  238. 'javascript-remix',
  239. 'javascript-svelte',
  240. 'javascript-sveltekit',
  241. // mobile
  242. 'android',
  243. 'apple-ios',
  244. 'cordova',
  245. 'javascript-cordova',
  246. 'react-native',
  247. 'flutter',
  248. 'dart-flutter',
  249. // backend
  250. 'bun',
  251. 'native',
  252. 'node',
  253. 'node-express',
  254. 'node-koa',
  255. 'node-connect',
  256. 'python',
  257. 'python-django',
  258. 'python-flask',
  259. 'python-fastapi',
  260. 'python-starlette',
  261. 'python-sanic',
  262. 'python-celery',
  263. 'python-bottle',
  264. 'python-pylons',
  265. 'python-pyramid',
  266. 'python-tornado',
  267. 'python-rq',
  268. 'python-pymongo',
  269. 'rust',
  270. // serverless
  271. // desktop
  272. 'apple-macos',
  273. 'native',
  274. 'native-crashpad',
  275. 'native-breakpad',
  276. 'native-qt',
  277. ];
  278. export const replayPlatforms: readonly PlatformKey[] = [
  279. 'capacitor',
  280. 'electron',
  281. 'javascript-angular',
  282. // 'javascript-angularjs', // Unsupported, angularjs requires the v6.x core SDK
  283. 'javascript-backbone',
  284. 'javascript-capacitor',
  285. 'javascript-electron',
  286. 'javascript-ember',
  287. 'javascript-gatsby',
  288. 'javascript-nextjs',
  289. 'javascript-react',
  290. 'javascript-remix',
  291. 'javascript-svelte',
  292. 'javascript-sveltekit',
  293. 'javascript-vue',
  294. 'javascript',
  295. ];
  296. /**
  297. * The list of platforms for which we have created onboarding instructions.
  298. * Should be a subset of the list of `replayPlatforms`.
  299. * This should match sentry-docs: `/src/wizard/${platform}/replay-onboarding/${subPlatform}/`.
  300. * See: https://github.com/getsentry/sentry-docs/tree/master/src/wizard/javascript/replay-onboarding
  301. */
  302. export const replayOnboardingPlatforms: readonly PlatformKey[] = [
  303. 'capacitor',
  304. 'electron',
  305. 'javascript-angular',
  306. // 'javascript-angularjs', // Unsupported, angularjs requires the v6.x core SDK
  307. // 'javascript-backbone', // No docs yet
  308. 'javascript-capacitor',
  309. 'javascript-electron',
  310. 'javascript-ember',
  311. 'javascript-gatsby',
  312. 'javascript-nextjs',
  313. 'javascript-react',
  314. 'javascript-remix',
  315. 'javascript-svelte',
  316. 'javascript-sveltekit',
  317. 'javascript-vue',
  318. 'javascript',
  319. ];