settings.ts 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. import {t} from 'sentry/locale';
  2. export const MODULE_TITLE = t('Queues');
  3. export const BASE_URL = 'queues';
  4. export const DESTINATION_TITLE = t('Destination Summary');
  5. export const releaseLevelAsBadgeProps = {
  6. isNew: true,
  7. };
  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/queue-monitoring/';
  41. export const ONBOARDING_CONTENT = {
  42. title: t('Start collecting Insights about your Queues!'),
  43. description: t('Our robot is waiting for your first background job to complete.'),
  44. link: MODULE_DOC_LINK,
  45. };