Skip to content

Commit 2c00aac

Browse files
feat: Turn unraisable exception integration on by default (#5044)
Add `UnraisablehookIntegration` to the default integrations list.
1 parent 1afaf6b commit 2c00aac

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,5 +1,6 @@
11
from abc import ABC, abstractmethod
22
from threading import Lock
3+
import sys
34

45
from sentry_sdk.utils import logger
56

@@ -73,6 +74,11 @@ def iter_default_integrations(with_auto_enabling_integrations):
7374
"sentry_sdk.integrations.threading.ThreadingIntegration",
7475
]
7576

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

0 commit comments

Comments
 (0)