Default Integrations

System integrations are integrations enabled by default that integrate into the standard library or the interpreter itself. They are documented so you can see what they do and that they can be disabled if they cause issues. To disable system integrations set defaultIntegrations: false when calling init(). To override their settings, provide a new instance with your config to integrations option, for example to change fatal error handler integrations: [new Sentry.Integrations.OnUncaughtException({ onFatalError: () => { /** your implementation */ } })].

Core

Dedupe

Import name: Sentry.Integrations.Dedupe

This integration deduplicates certain events. This is enabled by default and should not be disabled except in rare circumstances. Disabling this integration for instance will cause duplicate error logging.

FunctionToString

Import name: Sentry.Integrations.FunctionToString

This integration allows SDK to provide original functions and method names, even when they are wrapped by our error or breadcrumbs handlers.

InboundFilters

Import name: Sentry.Integrations.InboundFilter

This integration allows developers to ignore specific errors based on the type or message, as well as blacklist/whitelist urls which exception originates from.

To configure it, use ignoreErrors, blacklistUrls and whitelistUrls SDK options directly.

Console

Import name: Sentry.Integrations.Console

This integration wraps console module to treat all it’s calls as breadcrumbs.

Http

Import name: Sentry.Integrations.Http

This integration wraps http and https modules to capture all network requests as breadcrumbs.

OnUncaughtException

Import name: Sentry.Integrations.OnUncaughtException

This integration attaches global uncaught exception handler. Can be modified to provide a custom shutdown function.

Available options:

{
  onFatalError: (firstError: Error, secondError?: Error) => void;
}

OnUnhandledRejection

Import name: Sentry.Integrations.OnUnhandledRejection

This integration attaches global unhandled rejection handlers.

LinkedErrors

Import name: Sentry.Integrations.LinkedErrors

This integration allows to configure linked errors. They’ll be recursively read up to a specified limit and lookup will be performed by a specific key. By default, limit is set to 5 and key used is cause.

Available options:

{
  key: string;
  limit: number;
}