Skip to content

Commit 5360f37

Browse files
committed
move handler
1 parent e2e237f commit 5360f37

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

tests/integrations/tornado/test_tornado.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff 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+
6572
def 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])
540540
def test_user_ip_address_on_all_spans(
541541
tornado_testcase, sentry_init, capture_items, send_default_pii

0 commit comments

Comments
 (0)