From 8722545e9501a9f28d6cdc679c8b8f595fe9ff0a Mon Sep 17 00:00:00 2001 From: Ivana Kellyer Date: Wed, 29 Jul 2026 14:47:27 +0200 Subject: [PATCH 1/2] ref(strawberry): Take out of auto-enabling integrations --- MIGRATION_GUIDE.md | 11 +++++++++++ sentry_sdk/integrations/__init__.py | 1 - 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/MIGRATION_GUIDE.md b/MIGRATION_GUIDE.md index 28827ec73a..71ce8e6ba4 100644 --- a/MIGRATION_GUIDE.md +++ b/MIGRATION_GUIDE.md @@ -8,6 +8,17 @@ Looking to upgrade from Sentry SDK 2.x to 3.x? Here's a comprehensive list of wh ## Changed +- The Strawberry integration won't auto-enable anymore if we detect `strawberry-graphql` is installed. Set it up manually, setting the `async_execution` integration option to either `True` or `False` depending on if your app is async or sync. + + ```python + sentry_sdk.init( + integrations=[ + StrawberryIntegration(async_execution=True), # or False + ], + ... + ) + ``` + - The UnraisableHookIntegration is now enabled by default. - We now don't suppress chained exceptions in the ASGI and asyncio integrations by default. The related `suppress_asgi_chained_exceptions` experimental option was removed. diff --git a/sentry_sdk/integrations/__init__.py b/sentry_sdk/integrations/__init__.py index d71b1f5ff6..7aa496cec2 100644 --- a/sentry_sdk/integrations/__init__.py +++ b/sentry_sdk/integrations/__init__.py @@ -110,7 +110,6 @@ def iter_default_integrations( "sentry_sdk.integrations.sqlalchemy.SqlalchemyIntegration", "sentry_sdk.integrations.starlette.StarletteIntegration", "sentry_sdk.integrations.starlite.StarliteIntegration", - "sentry_sdk.integrations.strawberry.StrawberryIntegration", "sentry_sdk.integrations.tornado.TornadoIntegration", ] From 8d036d9f8d69847ccaae17c055f1ef8582779709 Mon Sep 17 00:00:00 2001 From: Ivana Kellyer Date: Wed, 29 Jul 2026 15:09:25 +0200 Subject: [PATCH 2/2] add import --- MIGRATION_GUIDE.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MIGRATION_GUIDE.md b/MIGRATION_GUIDE.md index 71ce8e6ba4..7fc22517e3 100644 --- a/MIGRATION_GUIDE.md +++ b/MIGRATION_GUIDE.md @@ -11,6 +11,8 @@ Looking to upgrade from Sentry SDK 2.x to 3.x? Here's a comprehensive list of wh - The Strawberry integration won't auto-enable anymore if we detect `strawberry-graphql` is installed. Set it up manually, setting the `async_execution` integration option to either `True` or `False` depending on if your app is async or sync. ```python + from sentry_sdk.integrations.strawberry import StrawberryIntegration + sentry_sdk.init( integrations=[ StrawberryIntegration(async_execution=True), # or False