settings.ts 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. import {t} from 'sentry/locale';
  2. export const MODULE_TITLE = t('Queues');
  3. export const BASE_URL = 'queues';
  4. export const CHART_HEIGHT = 160;
  5. export const DESTINATION_TITLE = t('Destination Summary');
  6. export const releaseLevelAsBadgeProps = {
  7. isNew: true,
  8. };
  9. export const DEFAULT_QUERY_FILTER = 'span.op:[queue.process,queue.publish]';
  10. export const CONSUMER_QUERY_FILTER = 'span.op:queue.process';
  11. export const PRODUCER_QUERY_FILTER = 'span.op:queue.publish';
  12. export const TRACE_STATUS_OPTIONS = [
  13. 'ok',
  14. 'cancelled',
  15. 'unknown',
  16. 'unknown_error',
  17. 'invalid_argument',
  18. 'deadline_exceeded',
  19. 'not_found',
  20. 'already_exists',
  21. 'permission_denied',
  22. 'resource_exhausted',
  23. 'failed_precondition',
  24. 'aborted',
  25. 'out_of_range',
  26. 'unimplemented',
  27. 'internal_error',
  28. 'unavailable',
  29. 'data_loss',
  30. 'unauthenticated',
  31. ];
  32. export const RETRY_COUNT_OPTIONS = ['0', '1-3', '4+'];
  33. export enum MessageActorType {
  34. PRODUCER = 'producer',
  35. CONSUMER = 'consumer',
  36. }
  37. export const MODULE_DESCRIPTION = t(
  38. 'Understand the health and performance impact that queues have on your application and diagnose errors tied to jobs.'
  39. );
  40. export const MODULE_DOC_LINK =
  41. 'https://docs.sentry.io/product/insights/queue-monitoring/';
  42. export const ONBOARDING_CONTENT = {
  43. title: t('Make sure your jobs complete without errors'),
  44. description: t(
  45. 'Track the behavior of background jobs at each step in their processing, allowing you to see whether jobs are completing on time and making it easy to debug when they are failing.'
  46. ),
  47. link: MODULE_DOC_LINK,
  48. };
  49. export const TABLE_ROWS_LIMIT = 25;