From e7185578880ea721ddd46e07c8d03429681585c6 Mon Sep 17 00:00:00 2001 From: Alexander Alderman Webb Date: Thu, 30 Oct 2025 09:06:00 +0100 Subject: [PATCH] feat: Turn unraisable exception integration on by default --- sentry_sdk/integrations/__init__.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sentry_sdk/integrations/__init__.py b/sentry_sdk/integrations/__init__.py index 2d3d621ef7..507e9d5bff 100644 --- a/sentry_sdk/integrations/__init__.py +++ b/sentry_sdk/integrations/__init__.py @@ -1,5 +1,6 @@ from abc import ABC, abstractmethod from threading import Lock +import sys from sentry_sdk.utils import logger @@ -73,6 +74,11 @@ def iter_default_integrations(with_auto_enabling_integrations): "sentry_sdk.integrations.threading.ThreadingIntegration", ] +if sys.version_info >= (3, 8): + _DEFAULT_INTEGRATIONS.append( + "sentry_sdk.integrations.unraisablehook.UnraisablehookIntegration" + ) + _AUTO_ENABLING_INTEGRATIONS = [ "sentry_sdk.integrations.aiohttp.AioHttpIntegration", "sentry_sdk.integrations.anthropic.AnthropicIntegration",