1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- import {
- FORTY_EIGHT_HOURS,
- GranularityLadder,
- ONE_HOUR,
- SIX_HOURS,
- SIXTY_DAYS,
- THIRTY_DAYS,
- TWENTY_FOUR_HOURS,
- TWO_WEEKS,
- } from 'sentry/components/charts/utils';
- import {t} from 'sentry/locale';
- import {type Aggregate, ModuleName} from 'sentry/views/starfish/types';
- export const MODULE_TITLE = t('Queries');
- export const BASE_URL = 'database';
- export const BASE_FILTERS = {
- 'span.module': ModuleName.DB,
- has: 'span.description',
- };
- export const MIN_SDK_VERSION_BY_PLATFORM: {[platform: string]: string} = {
- 'sentry.python': '1.29.2',
- 'sentry.javascript': '7.63.0',
- 'sentry.laravel': '3.8.0',
- 'sentry.cocoa': '8.11.0',
- 'sentry.java': '6.29.0',
- 'sentry.ruby': '5.11.0',
- 'sentry.dotnet': '3.39.0',
- 'sentry.symfony': '4.11.0',
- 'sentry.android': '6.30.0',
- };
- export const DEFAULT_INTERVAL = '10m';
- export const DEFAULT_DURATION_AGGREGATE: Aggregate = 'avg';
- export const CHART_HEIGHT = 160;
- export const COUNTER_GRANULARITIES = new GranularityLadder([
- [SIXTY_DAYS, '1d'],
- [THIRTY_DAYS, '12h'],
- [TWO_WEEKS, '4h'],
- [TWENTY_FOUR_HOURS, '30m'],
- [SIX_HOURS, '5m'],
- [ONE_HOUR, '1m'],
- [0, '1m'],
- ]);
- export const DISTRIBUTION_GRANULARITIES = new GranularityLadder([
- [TWO_WEEKS, '1d'],
- [FORTY_EIGHT_HOURS, '1h'],
- [TWENTY_FOUR_HOURS, '30m'],
- [SIX_HOURS, '5m'],
- [ONE_HOUR, '1m'],
- [0, '1m'],
- ]);
- export const MODULE_DESCRIPTION = t(
- 'Investigate the performance of database queries and get the information necessary to improve them.'
- );
- export const MODULE_DOC_LINK = 'https://docs.sentry.io/product/insights/queries/';
|