Skip to content

Commit

Permalink
fix(django): Add sync_capable to SentryWrappingMiddleware
Browse files Browse the repository at this point in the history
Fixes #3506
  • Loading branch information
szokeasaurusrex committed Sep 9, 2024
1 parent 0fb04be commit 1f19214
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sentry_sdk/integrations/django/middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ def sentry_wrapped_method(*args, **kwargs):
class SentryWrappingMiddleware(
_asgi_middleware_mixin_factory(_check_middleware_span) # type: ignore
):
sync_capable = getattr(middleware, "sync_capable", True)
async_capable = DJANGO_SUPPORTS_ASYNC_MIDDLEWARE and getattr(
middleware, "async_capable", False
)
Expand Down

0 comments on commit 1f19214

Please sign in to comment.