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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

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",