Skip to content

Commit 030f82d

Browse files
committed
Decode headers before creating transaction
1 parent e559525 commit 030f82d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

sentry_sdk/integrations/asgi.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,7 @@ async def _run_app(self, scope, callback):
130130

131131
if ty in ("http", "websocket"):
132132
transaction = Transaction.continue_from_headers(
133-
dict(scope["headers"]),
134-
op="{}.server".format(ty),
133+
self._get_headers(scope), op="{}.server".format(ty),
135134
)
136135
else:
137136
transaction = Transaction(op="asgi.server")

0 commit comments

Comments
 (0)