settings.ts 1.3 KB

1234567891011121314151617181920212223242526272829303132
  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 MODULE_TITLE = t('Caches');
  5. export const BASE_URL = 'caches';
  6. export const RELEASE_LEVEL: BadgeType = 'beta';
  7. // NOTE: Awkward typing, but without it `RELEASE_LEVEL` is narrowed and the comparison is not allowed
  8. export const releaseLevelAsBadgeProps = {
  9. isNew: true,
  10. };
  11. export const CHART_HEIGHT = 160;
  12. export const CACHE_BASE_URL = `/performance/${BASE_URL}`;
  13. export const BASE_FILTERS: SpanMetricsQueryFilters = {
  14. 'span.op': '[cache.get_item,cache.get]', // TODO - add more span ops as they become available, we can't use span.module because db.redis is also `cache`
  15. }; // TODO - Its akward to construct an array here, mutibleSearch should support array values
  16. export const MODULE_DESCRIPTION = t(
  17. 'Discover whether your application is utilizing caching effectively and understand the latency associated with cache misses.'
  18. );
  19. export const MODULE_DOC_LINK = 'https://docs.sentry.io/product/performance/caches/';
  20. export const ONBOARDING_CONTENT = {
  21. title: t('Start collecting Insights about your Caches!'),
  22. description: t('Our robot is waiting to collect your first cache hit.'),
  23. link: MODULE_DOC_LINK,
  24. };