settings.ts 1.2 KB

1234567891011121314151617181920212223242526272829
  1. import {t} from 'sentry/locale';
  2. import type {SpanMetricsQueryFilters} from 'sentry/views/starfish/types';
  3. export const MODULE_TITLE = t('Caches');
  4. export const BASE_URL = 'caches';
  5. // NOTE: Awkward typing, but without it `RELEASE_LEVEL` is narrowed and the comparison is not allowed
  6. export const releaseLevelAsBadgeProps = {
  7. isNew: true,
  8. };
  9. export const CHART_HEIGHT = 160;
  10. export const CACHE_BASE_URL = `/performance/${BASE_URL}`;
  11. export const BASE_FILTERS: SpanMetricsQueryFilters = {
  12. '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`
  13. }; // TODO - Its akward to construct an array here, mutibleSearch should support array values
  14. export const MODULE_DESCRIPTION = t(
  15. 'Discover whether your application is utilizing caching effectively and understand the latency associated with cache misses.'
  16. );
  17. export const MODULE_DOC_LINK = 'https://docs.sentry.io/product/insights/caches/';
  18. export const ONBOARDING_CONTENT = {
  19. title: t('Start collecting Insights about your Caches!'),
  20. description: t('Our robot is waiting to collect your first cache hit.'),
  21. link: MODULE_DOC_LINK,
  22. };