Skip to content

Commit 1f19214

Browse files
fix(django): Add sync_capable to SentryWrappingMiddleware
Fixes #3506
1 parent 0fb04be commit 1f19214

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sentry_sdk/integrations/django/middleware.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ def sentry_wrapped_method(*args, **kwargs):
125125
class SentryWrappingMiddleware(
126126
_asgi_middleware_mixin_factory(_check_middleware_span) # type: ignore
127127
):
128+
sync_capable = getattr(middleware, "sync_capable", True)
128129
async_capable = DJANGO_SUPPORTS_ASYNC_MIDDLEWARE and getattr(
129130
middleware, "async_capable", False
130131
)

0 commit comments

Comments
 (0)