Skip to content

Commit a9d4b26

Browse files
feat: Turn the unraisable exception integration on by default
1 parent ebd77f2 commit a9d4b26

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

sentry_sdk/integrations/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from __future__ import annotations
22
from abc import ABC, abstractmethod
33
from threading import Lock
4+
import sys
45

56
from sentry_sdk.utils import logger
67

@@ -74,6 +75,11 @@ def iter_default_integrations(
7475
"sentry_sdk.integrations.threading.ThreadingIntegration",
7576
]
7677

78+
if sys.version_info >= (3, 8):
79+
_DEFAULT_INTEGRATIONS.append(
80+
"sentry_sdk.integrations.unraisablehook.UnraisablehookIntegration"
81+
)
82+
7783
_AUTO_ENABLING_INTEGRATIONS = [
7884
"sentry_sdk.integrations.aiohttp.AioHttpIntegration",
7985
"sentry_sdk.integrations.anthropic.AnthropicIntegration",

0 commit comments

Comments
 (0)