settings.ts 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. import {t} from 'sentry/locale';
  2. export const MODULE_TITLE = t('Queues');
  3. export const BASE_URL = 'queues';
  4. export const DATA_TYPE = t('Queue');
  5. export const DATA_TYPE_PLURAL = t('Queues');
  6. export const CHART_HEIGHT = 160;
  7. export const DESTINATION_TITLE = t('Destination Summary');
  8. export const DEFAULT_QUERY_FILTER = 'span.op:[queue.process,queue.publish]';
  9. export const CONSUMER_QUERY_FILTER = 'span.op:queue.process';
  10. export const PRODUCER_QUERY_FILTER = 'span.op:queue.publish';
  11. export const TRACE_STATUS_OPTIONS = [
  12. 'ok',
  13. 'cancelled',
  14. 'unknown',
  15. 'unknown_error',
  16. 'invalid_argument',
  17. 'deadline_exceeded',
  18. 'not_found',
  19. 'already_exists',
  20. 'permission_denied',
  21. 'resource_exhausted',
  22. 'failed_precondition',
  23. 'aborted',
  24. 'out_of_range',
  25. 'unimplemented',
  26. 'internal_error',
  27. 'unavailable',
  28. 'data_loss',
  29. 'unauthenticated',
  30. ];
  31. export const RETRY_COUNT_OPTIONS = ['0', '1-3', '4+'];
  32. export enum MessageActorType {
  33. PRODUCER = 'producer',
  34. CONSUMER = 'consumer',
  35. }
  36. export const MODULE_DESCRIPTION = t(
  37. 'Understand the health and performance impact that queues have on your application and diagnose errors tied to jobs.'
  38. );
  39. export const MODULE_DOC_LINK =
  40. 'https://docs.sentry.io/product/insights/backend/queue-monitoring/';
  41. export const TABLE_ROWS_LIMIT = 25;
  42. export const MODULE_FEATURES = ['insights-addon-modules'];