Skip to content

Commit 013bb99

Browse files
authored
Make sentry work for asgi endpoints too (#89)
1 parent 4956e74 commit 013bb99

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

main/asgi.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
from channels.routing import ProtocolTypeRouter, URLRouter
99
from django.core.asgi import get_asgi_application
1010
from django.urls import re_path
11+
from sentry_sdk.integrations.asgi import SentryAsgiMiddleware
1112

1213
from main.middleware.configs import HTTP_MIDDLEWARE
1314
from main.middleware.util import apply_middleware
@@ -33,3 +34,5 @@
3334
),
3435
}
3536
)
37+
38+
application = SentryAsgiMiddleware(application)

0 commit comments

Comments
 (0)