Skip to content

Commit 66a107f

Browse files
authored
fix(async-io): return coro when __name__ is not present (#2541)
1 parent da75015 commit 66a107f

File tree

1 file changed

+1
-1
lines changed
  • instrumentation/opentelemetry-instrumentation-asyncio/src/opentelemetry/instrumentation/asyncio

1 file changed

+1
-1
lines changed

Diff for: instrumentation/opentelemetry-instrumentation-asyncio/src/opentelemetry/instrumentation/asyncio/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ def trace_item(self, coro_or_future):
262262

263263
async def trace_coroutine(self, coro):
264264
if not hasattr(coro, "__name__"):
265-
return
265+
return coro
266266
start = default_timer()
267267
attr = {
268268
"type": "coroutine",

0 commit comments

Comments
 (0)