settings.ts 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. isNew: true,
  9. };
  10. export const DEFAULT_QUERY_FILTER = 'span.op:[queue.process,queue.publish]';
  11. export const CONSUMER_QUERY_FILTER = 'span.op:queue.process';
  12. export const PRODUCER_QUERY_FILTER = 'span.op:queue.publish';
  13. export const TRACE_STATUS_OPTIONS = [
  14. 'ok',
  15. 'cancelled',
  16. 'unknown',
  17. 'unknown_error',
  18. 'invalid_argument',
  19. 'deadline_exceeded',
  20. 'not_found',
  21. 'already_exists',
  22. 'permission_denied',
  23. 'resource_exhausted',
  24. 'failed_precondition',
  25. 'aborted',
  26. 'out_of_range',
  27. 'unimplemented',
  28. 'internal_error',
  29. 'unavailable',
  30. 'data_loss',
  31. 'unauthenticated',
  32. ];
  33. export const RETRY_COUNT_OPTIONS = ['0', '1-3', '4+'];
  34. export enum MessageActorType {
  35. PRODUCER = 'producer',
  36. CONSUMER = 'consumer',
  37. }
  38. export const MODULE_DESCRIPTION = t(
  39. 'Understand the health and performance impact that queues have on your application and diagnose errors tied to jobs.'
  40. );
  41. export const MODULE_DOC_LINK =
  42. 'https://docs.sentry.io/product/performance/queue-monitoring/';
  43. export const ONBOARDING_CONTENT = {
  44. title: t('Start collecting Insights about your Queues!'),
  45. description: t('Our robot is waiting for your first background job to complete.'),
  46. link: MODULE_DOC_LINK,
  47. };