settings.ts 1.3 KB

12345678910111213141516171819202122232425262728293031
  1. import {t} from 'sentry/locale';
  2. import type {SpanMetricsQueryFilters} from 'sentry/views/insights/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('Make sure your application’s caching is behaving properly'),
  20. description: t(
  21. 'We tell you if your application is hitting cache as often as expected and whether it’s delivering the anticipated performance improvements.'
  22. ),
  23. link: MODULE_DOC_LINK,
  24. };