constants.tsx 714 B

1234567891011121314151617181920212223
  1. import {VitalsKey} from './types';
  2. export const VITALS_TYPES = ['FCP', 'LCP', 'appStartCold', 'appStartWarm'] as const;
  3. // these are industry standards determined by Google (https://web.dev/defining-core-web-vitals-thresholds/)
  4. export const INDUSTRY_STANDARDS: Record<VitalsKey, number> = {
  5. LCP: 2500,
  6. FCP: 1800,
  7. appStartCold: 5000,
  8. appStartWarm: 2000,
  9. };
  10. // these were determined using a Looker query and might change over time
  11. export const SENTRY_CUSTOMERS: Record<VitalsKey, number> = {
  12. LCP: 948,
  13. FCP: 760,
  14. appStartCold: 2260,
  15. appStartWarm: 1900,
  16. };
  17. // an organization must have at least this many transactions
  18. // of the vital we want to show
  19. export const MIN_VITAL_COUNT_FOR_DISPLAY = 100;