settings.ts 975 B

12345678910111213141516171819202122
  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. export const DATA_TYPE = t('Cache');
  6. export const DATA_TYPE_PLURAL = t('Caches');
  7. export const CHART_HEIGHT = 160;
  8. export const CACHE_BASE_URL = `/performance/${BASE_URL}`;
  9. export const BASE_FILTERS: SpanMetricsQueryFilters = {
  10. '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`
  11. }; // TODO - Its akward to construct an array here, mutibleSearch should support array values
  12. export const MODULE_DESCRIPTION = t(
  13. 'Discover whether your application is utilizing caching effectively and understand the latency associated with cache misses.'
  14. );
  15. export const MODULE_DOC_LINK = 'https://docs.sentry.io/product/insights/caches/';
  16. export const MODULE_FEATURES = ['insights-addon-modules'];