settings.ts 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. import type {BadgeType} from 'sentry/components/badge/featureBadge';
  2. import {t} from 'sentry/locale';
  3. export const MODULE_TITLE = t('Queues');
  4. export const BASE_URL = 'queues';
  5. export const DESTINATION_TITLE = t('Destination Summary');
  6. export const RELEASE_LEVEL: BadgeType = 'beta';
  7. export const releaseLevelAsBadgeProps = {
  8. isAlpha: (RELEASE_LEVEL as BadgeType) === 'alpha',
  9. isBeta: (RELEASE_LEVEL as BadgeType) === 'beta',
  10. isNew: (RELEASE_LEVEL as BadgeType) === 'new',
  11. };
  12. export const DEFAULT_QUERY_FILTER = 'span.op:[queue.process,queue.publish]';
  13. export const CONSUMER_QUERY_FILTER = 'span.op:queue.process';
  14. export const PRODUCER_QUERY_FILTER = 'span.op:queue.publish';
  15. export const TRACE_STATUS_OPTIONS = [
  16. 'ok',
  17. 'cancelled',
  18. 'unknown',
  19. 'unknown_error',
  20. 'invalid_argument',
  21. 'deadline_exceeded',
  22. 'not_found',
  23. 'already_exists',
  24. 'permission_denied',
  25. 'resource_exhausted',
  26. 'failed_precondition',
  27. 'aborted',
  28. 'out_of_range',
  29. 'unimplemented',
  30. 'internal_error',
  31. 'unavailable',
  32. 'data_loss',
  33. 'unauthenticated',
  34. ];
  35. export const RETRY_COUNT_OPTIONS = ['0', '1-3', '4+'];
  36. export enum MessageActorType {
  37. PRODUCER = 'producer',
  38. CONSUMER = 'consumer',
  39. }
  40. export const MODULE_DESCRIPTION = t(
  41. 'Understand the health and performance impact that queues have on your application and diagnose errors tied to jobs.'
  42. );
  43. export const MODULE_DOC_LINK =
  44. 'https://docs.sentry.io/product/performance/queue-monitoring/';
  45. export const ONBOARDING_CONTENT = {
  46. title: t('Start collecting Insights about your Queues!'),
  47. description: t('Our robot is waiting for your first background job to complete.'),
  48. link: MODULE_DOC_LINK,
  49. };