diff --git a/sentry_sdk/integrations/asgi.py b/sentry_sdk/integrations/asgi.py index 6bd1c146a0..cfe8c6f8d1 100644 --- a/sentry_sdk/integrations/asgi.py +++ b/sentry_sdk/integrations/asgi.py @@ -130,7 +130,7 @@ async def _run_app(self, scope, callback): if ty in ("http", "websocket"): transaction = Transaction.continue_from_headers( - dict(scope["headers"]), + self._get_headers(scope), op="{}.server".format(ty), ) else: