constants.tsx 1003 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. import {ErrorTags, FieldKey, SpanOpBreakdown, StackTags} from 'sentry/utils/fields';
  2. export const STANDARD_SEARCH_FIELD_KEYS = new Set([
  3. FieldKey.RELEASE,
  4. FieldKey.DIST,
  5. FieldKey.ENVIRONMENT,
  6. FieldKey.TRANSACTION,
  7. FieldKey.PLATFORM,
  8. FieldKey.TRANSACTION_OP,
  9. FieldKey.TRANSACTION_STATUS,
  10. FieldKey.HTTP_METHOD,
  11. FieldKey.HTTP_STATUS_CODE,
  12. FieldKey.BROWSER_NAME,
  13. FieldKey.OS_NAME,
  14. FieldKey.GEO_COUNTRY_CODE,
  15. ]);
  16. export const ON_DEMAND_METRICS_UNSUPPORTED_TAGS = new Set([
  17. FieldKey.ERROR_RECEIVED,
  18. FieldKey.HTTP_REFERER,
  19. FieldKey.ID,
  20. FieldKey.MESSAGE,
  21. FieldKey.PROFILE_ID,
  22. FieldKey.TIMESTAMP_TO_DAY,
  23. FieldKey.TIMESTAMP_TO_HOUR,
  24. FieldKey.TIMESTAMP,
  25. FieldKey.TITLE,
  26. FieldKey.TRACE_PARENT_SPAN,
  27. FieldKey.TRACE_SPAN,
  28. FieldKey.TRACE,
  29. FieldKey.USER,
  30. FieldKey.USER_DISPLAY,
  31. ...Object.values(SpanOpBreakdown),
  32. ...Object.values(StackTags),
  33. ...Object.values(ErrorTags),
  34. ]) as Set<FieldKey>;
  35. export const ERROR_ONLY_TAGS = new Set(Object.values(ErrorTags));