settings.ts 858 B

12345678910111213141516171819202122
  1. import type {BadgeType} from 'sentry/components/badge/featureBadge';
  2. import {t} from 'sentry/locale';
  3. import type {SpanMetricsQueryFilters} from 'sentry/views/starfish/types';
  4. export const RELEASE_LEVEL: BadgeType = 'alpha';
  5. // NOTE: Awkward typing, but without it `RELEASE_LEVEL` is narrowed and the comparison is not allowed
  6. export const releaseLevelAsBadgeProps = {
  7. isAlpha: (RELEASE_LEVEL as BadgeType) === 'alpha',
  8. isBeta: (RELEASE_LEVEL as BadgeType) === 'beta',
  9. isNew: (RELEASE_LEVEL as BadgeType) === 'new',
  10. };
  11. export const MODULE_TITLE = t('Cache');
  12. export const CHART_HEIGHT = 160;
  13. export const CACHE_BASE_URL = '/performance/cache';
  14. export const BASE_FILTERS: SpanMetricsQueryFilters = {
  15. 'span.op': 'cache.get_item', // TODO - add more span ops as they become available, we can't use span.module because db.redis is also `cache`
  16. };