diff --git a/instrumentation/opentelemetry-instrumentation-asyncio/src/opentelemetry/instrumentation/asyncio/__init__.py b/instrumentation/opentelemetry-instrumentation-asyncio/src/opentelemetry/instrumentation/asyncio/__init__.py index 9033bfeffb..d3e21fd08d 100644 --- a/instrumentation/opentelemetry-instrumentation-asyncio/src/opentelemetry/instrumentation/asyncio/__init__.py +++ b/instrumentation/opentelemetry-instrumentation-asyncio/src/opentelemetry/instrumentation/asyncio/__init__.py @@ -298,7 +298,7 @@ async def trace_coroutine(self, coro): finally: self.record_process(start, attr, span, exception) - def trace_future(self, future) -> futures.Future: + def trace_future(self, future): start = default_timer() span = ( self._tracer.start_span(f"{ASYNCIO_PREFIX} future") diff --git a/instrumentation/opentelemetry-instrumentation-asyncio/tests/test_asyncio_ensure_future.py b/instrumentation/opentelemetry-instrumentation-asyncio/tests/test_asyncio_ensure_future.py index daf3bc55f4..26de02b77d 100644 --- a/instrumentation/opentelemetry-instrumentation-asyncio/tests/test_asyncio_ensure_future.py +++ b/instrumentation/opentelemetry-instrumentation-asyncio/tests/test_asyncio_ensure_future.py @@ -73,7 +73,7 @@ async def test(): for span in spans: if span.name == "root": self.assertEqual(span.parent, None) - if span.name == "asyncio.future": + if span.name == "asyncio future": self.assertNotEqual(span.parent.trace_id, 0) for metric in (