Skip to content

Commit f8a0b5e

Browse files
committed
modify docs test results
1 parent 69c15e8 commit f8a0b5e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

instrumentation/opentelemetry-instrumentation-asyncio/src/opentelemetry/instrumentation/asyncio/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ async def trace_coroutine(self, coro):
298298
finally:
299299
self.record_process(start, attr, span, exception)
300300

301-
def trace_future(self, future) -> futures.Future:
301+
def trace_future(self, future):
302302
start = default_timer()
303303
span = (
304304
self._tracer.start_span(f"{ASYNCIO_PREFIX} future")

instrumentation/opentelemetry-instrumentation-asyncio/tests/test_asyncio_ensure_future.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ async def test():
7373
for span in spans:
7474
if span.name == "root":
7575
self.assertEqual(span.parent, None)
76-
if span.name == "asyncio.future":
76+
if span.name == "asyncio future":
7777
self.assertNotEqual(span.parent.trace_id, 0)
7878

7979
for metric in (

0 commit comments

Comments
 (0)