diff --git a/instrumentation/opentelemetry-instrumentation-fastapi/tests/test_fastapi_instrumentation_wrapped.py b/instrumentation/opentelemetry-instrumentation-fastapi/tests/test_fastapi_instrumentation_wrapped.py index 59355f479d..76f8b547d2 100644 --- a/instrumentation/opentelemetry-instrumentation-fastapi/tests/test_fastapi_instrumentation_wrapped.py +++ b/instrumentation/opentelemetry-instrumentation-fastapi/tests/test_fastapi_instrumentation_wrapped.py @@ -77,10 +77,10 @@ def test_render_path_parameters(self): resp = self.client.get("/foobar") self.assertEqual(resp.status_code, 200) spans = self.memory_exporter.get_finished_spans() - expected_span_name = "GET /foobar" + expected_span_name = "GET /foobar http send" self.assertEqual( spans[0].name, - "GET /foobar", + expected_span_name, f"Expected span name to be '{expected_span_name}', but got '{spans[0].name}'", )