settings.ts 1001 B

12345678910111213141516171819202122232425262728293031
  1. import {frontend} from 'sentry/data/platformCategories';
  2. import {t} from 'sentry/locale';
  3. import type {PlatformKey} from 'sentry/types/project';
  4. import {ModuleName} from 'sentry/views/insights/types';
  5. export const FRONTEND_LANDING_SUB_PATH = 'frontend';
  6. export const FRONTEND_LANDING_TITLE = t('Frontend');
  7. export const FRONTEND_SIDEBAR_LABEL = t('Frontend');
  8. export const OVERVIEW_PAGE_ALLOWED_OPS = [
  9. 'pageload',
  10. 'navigation',
  11. 'ui.render',
  12. 'interaction',
  13. ];
  14. export const OVERVIEW_PAGE_DISALLOWED_OPS = ['http.server'];
  15. export const MODULES = [
  16. ModuleName.VITAL,
  17. ModuleName.HTTP,
  18. ModuleName.RESOURCE,
  19. ModuleName.SESSIONS,
  20. ];
  21. // Mirrors `FRONTEND` in src/sentry/utils/platform_categories.py, except shared platforms are removed
  22. export const FRONTEND_PLATFORMS: PlatformKey[] = frontend.filter(
  23. platform =>
  24. // Next, Remix and Sveltekit have both, frontend and backend transactions.
  25. !['javascript-nextjs', 'javascript-remix', 'javascript-sveltekit'].includes(platform)
  26. );