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 11698e4
Show file tree
Hide file tree
Showing 10 changed files with 1 addition and 0 deletions.
Binary file added .coverage-py-3.12-strawberry-latest
Binary file not shown.
Binary file added .coverage-py3.12-celery
Binary file not shown.
Binary file added .coverage-py3.12-celery-latest
Binary file not shown.
Binary file added .coverage-py3.12-common
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added .coverage-py3.12-strawberry-latest
Binary file not shown.
Binary file added .coverage-py3.6-gevent
Binary file not shown.
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 11698e4

Please sign in to comment.