File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010 request_body_within_bounds ,
1111)
1212from sentry_sdk .serializer import partial_serialize
13+ from sentry_sdk .tracing import Span
1314from sentry_sdk .utils import (
1415 capture_internal_exceptions ,
1516 event_from_exception ,
@@ -70,9 +71,13 @@ async def inner():
7071 scope .clear_breadcrumbs ()
7172 scope .add_event_processor (_make_request_processor (weak_request ))
7273
74+ span = Span .continue_from_headers (request .headers )
75+ span .op = "http.server"
7376 # If this transaction name makes it to the UI, AIOHTTP's
7477 # URL resolver did not find a route or died trying.
75- with hub .start_span (transaction = "generic AIOHTTP request" ):
78+ span .transaction = "generic AIOHTTP request"
79+
80+ with hub .start_span (span ):
7681 try :
7782 response = await old_handle (self , request )
7883 except HTTPException :
You can’t perform that action at this time.
0 commit comments