File tree Expand file tree Collapse file tree
tests/integrations/tornado Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -62,6 +62,13 @@ async def post(self):
6262 return b"hello"
6363
6464
65+ class ChildSpanHandler (RequestHandler ):
66+ def get (self ):
67+ with sentry_sdk .traces .start_span (name = "child-span" ):
68+ pass
69+ self .write ("ok" )
70+
71+
6572def test_basic (tornado_testcase , sentry_init , capture_events ):
6673 sentry_init (integrations = [TornadoIntegration ()], send_default_pii = True )
6774 events = capture_events ()
@@ -529,13 +536,6 @@ def test_span_origin(
529536 assert event ["contexts" ]["trace" ]["origin" ] == "auto.http.tornado"
530537
531538
532- class ChildSpanHandler (RequestHandler ):
533- def get (self ):
534- with sentry_sdk .traces .start_span (name = "child-span" ):
535- pass
536- self .write ("ok" )
537-
538-
539539@pytest .mark .parametrize ("send_default_pii" , [True , False ])
540540def test_user_ip_address_on_all_spans (
541541 tornado_testcase , sentry_init , capture_items , send_default_pii
You can’t perform that action at this time.
0 commit comments