settings.ts 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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 FIELD_ALIASES = {
  12. 'spm() span.op:queue.publish': 'Published',
  13. 'spm() span.op:queue.process': 'Processed',
  14. 'avg(messaging.message.receive.latency)': t('Average Time in Queue'),
  15. 'avg(span.duration)': t('Average Processing Time'),
  16. };
  17. export const TRACE_STATUS_OPTIONS = [
  18. 'ok',
  19. 'cancelled',
  20. 'unknown',
  21. 'unknown_error',
  22. 'invalid_argument',
  23. 'deadline_exceeded',
  24. 'not_found',
  25. 'already_exists',
  26. 'permission_denied',
  27. 'resource_exhausted',
  28. 'failed_precondition',
  29. 'aborted',
  30. 'out_of_range',
  31. 'unimplemented',
  32. 'internal_error',
  33. 'unavailable',
  34. 'data_loss',
  35. 'unauthenticated',
  36. ];
  37. export const RETRY_COUNT_OPTIONS = ['0', '1-3', '4+'];
  38. export enum MessageActorType {
  39. PRODUCER = 'producer',
  40. CONSUMER = 'consumer',
  41. }
  42. export const MODULE_DESCRIPTION = t(
  43. 'Understand the health and performance impact that queues have on your application and diagnose errors tied to jobs.'
  44. );
  45. export const MODULE_DOC_LINK =
  46. 'https://docs.sentry.io/product/insights/backend/queue-monitoring/';
  47. export const TABLE_ROWS_LIMIT = 25;
  48. export const MODULE_FEATURES = ['insights-addon-modules'];