Skip to content

Commit 11698e4

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

10 files changed

+1
-0
lines changed

.coverage-py-3.12-strawberry-latest

364 KB
Binary file not shown.

.coverage-py3.12-celery

204 KB
Binary file not shown.

.coverage-py3.12-celery-latest

364 KB
Binary file not shown.

.coverage-py3.12-common

1.3 MB
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

.coverage-py3.12-strawberry-latest

352 KB
Binary file not shown.

.coverage-py3.6-gevent

1.21 MB
Binary file not shown.

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)