settings.ts 1.0 KB

123456789101112131415161718192021222324252627282930
  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 = 'alpha';
  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 enum MessageActorType {
  16. PRODUCER = 'producer',
  17. CONSUMER = 'consumer',
  18. }
  19. export const ONBOARDING_CONTENT = {
  20. title: t('Start collecting Insights about your Queues!'),
  21. description: t('Our robot is waiting for your first background job to complete.'),
  22. link: 'https://develop.sentry.dev/sdk/performance/modules/queues/',
  23. };