fix(async-io): return coro when __name__ is not present (#2541)

This commit is contained in:
Povilas Versockas
2024-05-24 02:28:50 +03:00
committed by GitHub
parent da75015fad
commit 66a107fa49

View File

@ -262,7 +262,7 @@ class AsyncioInstrumentor(BaseInstrumentor):
async def trace_coroutine(self, coro):
if not hasattr(coro, "__name__"):
return
return coro
start = default_timer()
attr = {
"type": "coroutine",