diff --git a/instrumentation/opentelemetry-instrumentation-tornado/tests/test_instrumentation.py b/instrumentation/opentelemetry-instrumentation-tornado/tests/test_instrumentation.py index d751252a26d..112a6f876e1 100644 --- a/instrumentation/opentelemetry-instrumentation-tornado/tests/test_instrumentation.py +++ b/instrumentation/opentelemetry-instrumentation-tornado/tests/test_instrumentation.py @@ -347,10 +347,10 @@ def test_traced_attrs(self): self.fetch("/ping?q=abc&b=123") spans = self.sorted_spans(self.memory_exporter.get_finished_spans()) self.assertEqual(len(spans), 2) - server = spans[0] - self.assertEqual(server.kind, SpanKind.SERVER) + server_span = spans[0] + self.assertEqual(server_span.kind, SpanKind.SERVER) self.assert_span_has_attributes( - server, {"uri": "/ping?q=abc&b=123", "query": "q=abc&b=123"} + server_span, {"uri": "/ping?q=abc&b=123", "query": "q=abc&b=123"} ) self.memory_exporter.clear()