Skip to content

Commit abe0c4d

Browse files
committed
Apply refactor changes from #3582
1 parent 894fdfb commit abe0c4d

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

instrumentation/opentelemetry-instrumentation-tornado/tests/test_instrumentation.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -480,13 +480,12 @@ async def test_websockethandler(self):
480480
self.assertSpanHasAttributes(
481481
req_span,
482482
{
483-
SpanAttributes.HTTP_METHOD: "GET",
484-
SpanAttributes.HTTP_SCHEME: "http",
485-
SpanAttributes.HTTP_HOST: "127.0.0.1:"
486-
+ str(self.get_http_port()),
487-
SpanAttributes.HTTP_TARGET: "/echo_socket",
488-
SpanAttributes.HTTP_CLIENT_IP: "127.0.0.1",
489-
SpanAttributes.HTTP_STATUS_CODE: 101,
483+
HTTP_METHOD: "GET",
484+
HTTP_SCHEME: "http",
485+
HTTP_HOST: f"127.0.0.1:{self.get_http_port()}",
486+
HTTP_TARGET: "/echo_socket",
487+
HTTP_CLIENT_IP: "127.0.0.1",
488+
HTTP_STATUS_CODE: 101,
490489
"tornado.handler": "tests.tornado_test_app.EchoWebSocketHandler",
491490
},
492491
)

0 commit comments

Comments
 (0)