1234567891011121314151617181920212223242526272829 |
- import type {BadgeType} from 'sentry/components/badge/featureBadge';
- import {t} from 'sentry/locale';
- import type {SpanMetricsQueryFilters} from 'sentry/views/starfish/types';
- export const MODULE_TITLE = t('Cache');
- export const BASE_URL = 'cache';
- export const RELEASE_LEVEL: BadgeType = 'alpha';
- // NOTE: Awkward typing, but without it `RELEASE_LEVEL` is narrowed and the comparison is not allowed
- export const releaseLevelAsBadgeProps = {
- isAlpha: (RELEASE_LEVEL as BadgeType) === 'alpha',
- isBeta: (RELEASE_LEVEL as BadgeType) === 'beta',
- isNew: (RELEASE_LEVEL as BadgeType) === 'new',
- };
- export const CHART_HEIGHT = 160;
- export const CACHE_BASE_URL = `/performance/${BASE_URL}`;
- export const BASE_FILTERS: SpanMetricsQueryFilters = {
- '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`
- }; // TODO - Its akward to construct an array here, mutibleSearch should support array values
- export const ONBOARDING_CONTENT = {
- title: t('Start collecting Insights about your Caches!'),
- description: t('Our robot is waiting to collect your first cache hit.'),
- link: 'https://develop.sentry.dev/sdk/performance/modules/caches/',
- };
|