File tree 1 file changed +6
-1
lines changed
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 10
10
request_body_within_bounds ,
11
11
)
12
12
from sentry_sdk .serializer import partial_serialize
13
+ from sentry_sdk .tracing import Span
13
14
from sentry_sdk .utils import (
14
15
capture_internal_exceptions ,
15
16
event_from_exception ,
@@ -70,9 +71,13 @@ async def inner():
70
71
scope .clear_breadcrumbs ()
71
72
scope .add_event_processor (_make_request_processor (weak_request ))
72
73
74
+ span = Span .continue_from_headers (request .headers )
75
+ span .op = "http.server"
73
76
# If this transaction name makes it to the UI, AIOHTTP's
74
77
# 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 ):
76
81
try :
77
82
response = await old_handle (self , request )
78
83
except HTTPException :
You can’t perform that action at this time.
0 commit comments