settings.ts 948 B

1234567891011121314151617181920212223242526272829303132
  1. import {t} from 'sentry/locale';
  2. export const MIN_SDK_VERSION_BY_PLATFORM: {[platform: string]: string} = {
  3. 'sentry.python': '1.29.2',
  4. 'sentry.javascript': '7.63.0',
  5. 'sentry.laravel': '3.8.0',
  6. 'sentry.cocoa': '8.11.0',
  7. 'sentry.java': '6.29.0',
  8. 'sentry.ruby': '5.11.0',
  9. 'sentry.dotnet': '3.39.0',
  10. 'sentry.symfony': '4.11.0',
  11. 'sentry.android': '6.30.0',
  12. };
  13. export const DEFAULT_DURATION_AGGREGATE = 'avg';
  14. export const AVAILABLE_DURATION_AGGREGATES = ['avg', 'p50', 'p75', 'p95', 'p99']; // TODO: `max` is not a supported aggregate for this dataset on the backend. Why?
  15. const DURATION_AGGREGATE_LABELS = {
  16. avg: t('Average Duration'),
  17. p50: t('Duration p50'),
  18. p75: t('Duration p75'),
  19. p95: t('Duration p95'),
  20. p99: t('Duration p99'),
  21. };
  22. export const AVAILABLE_DURATION_AGGREGATE_OPTIONS = AVAILABLE_DURATION_AGGREGATES.map(
  23. aggregate => ({
  24. value: aggregate,
  25. label: DURATION_AGGREGATE_LABELS[aggregate],
  26. })
  27. );