Disable Integrations

All of Sentry’s SDKs provide integrations, which extend functionality of the SDK. Most integrations are enabled by default, though you can disable them if needed.

To disable an integration, for example, the automatic capture of unhandled exceptions:

Copied
using Sentry;

// Add it to your Sentry SDK initialization block:
options.DisableAppDomainUnhandledExceptionCapture()

DisableAppDomainUnhandledExceptionCapture

Disables automatic capture of unhandled exceptions.

DisableTaskUnobservedTaskExceptionCapture

Disables automatic capture of Unobserved Task Exceptions.

DisableNetFxInstallationsIntegration

Disables adding the list of .NET Frameworks installations into events.

DisableAppDomainProcessExitFlush

Disables flushing events upon AppDomain.ProcessExit event handler.

Help improve this content
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) to suggesting an update ("yeah, this would be better").