settings.ts 632 B

123456789101112131415161718
  1. import type {BadgeType} from 'sentry/components/badge/featureBadge';
  2. import {t} from 'sentry/locale';
  3. export const MODULE_TITLE = t('Requests');
  4. export const NULL_DOMAIN_DESCRIPTION = t('Unknown Domain');
  5. export const RELEASE_LEVEL: BadgeType = 'new';
  6. // NOTE: Awkward typing, but without it `RELEASE_LEVEL` is narrowed and the comparison is not allowed
  7. export const releaseLevelAsBadgeProps = {
  8. isAlpha: (RELEASE_LEVEL as BadgeType) === 'alpha',
  9. isBeta: (RELEASE_LEVEL as BadgeType) === 'beta',
  10. isNew: (RELEASE_LEVEL as BadgeType) === 'new',
  11. };
  12. export const CHART_HEIGHT = 160;
  13. export const SPAN_ID_DISPLAY_LENGTH = 16;