settings.ts 930 B

12345678910111213141516171819202122232425
  1. import type {BadgeType} from 'sentry/components/badge/featureBadge';
  2. import {t} from 'sentry/locale';
  3. import {ModuleName} from 'sentry/views/starfish/types';
  4. export const MODULE_TITLE = t('Requests');
  5. export const BASE_URL = 'http';
  6. export const NULL_DOMAIN_DESCRIPTION = t('Unknown Domain');
  7. export const RELEASE_LEVEL: BadgeType = 'new';
  8. // NOTE: Awkward typing, but without it `RELEASE_LEVEL` is narrowed and the comparison is not allowed
  9. export const releaseLevelAsBadgeProps = {
  10. isAlpha: (RELEASE_LEVEL as BadgeType) === 'alpha',
  11. isBeta: (RELEASE_LEVEL as BadgeType) === 'beta',
  12. isNew: (RELEASE_LEVEL as BadgeType) === 'new',
  13. };
  14. export const CHART_HEIGHT = 160;
  15. export const SPAN_ID_DISPLAY_LENGTH = 16;
  16. export const BASE_FILTERS = {
  17. 'span.module': ModuleName.HTTP,
  18. 'span.op': 'http.client', // `span.module` alone isn't enough, since some SDKs create other `http.*` spans like `http.client.response_body`
  19. };