types.ts 709 B

1234567891011121314151617181920212223242526
  1. import { Transaction } from '@sentry/node';
  2. import { NodeOptions } from '@sentry/node/types/types';
  3. import { SENTRY_TRANSACTION_KEY } from './constants';
  4. /**
  5. * @description
  6. * Configuration options for the {@link SentryPlugin}.
  7. *
  8. * @docsCategory core plugins/SentryPlugin
  9. */
  10. export interface SentryPluginOptions extends NodeOptions {
  11. /**
  12. * @description
  13. * The [Data Source Name](https://docs.sentry.io/product/sentry-basics/concepts/dsn-explainer/) for your Sentry instance.
  14. */
  15. dsn: string;
  16. enableTracing?: boolean;
  17. includeErrorTestMutation?: boolean;
  18. }
  19. declare module 'express' {
  20. interface Request {
  21. [SENTRY_TRANSACTION_KEY]: Transaction | undefined;
  22. }
  23. }