fix(async-io): return coro when __name__ is not present (#2541)
This commit is contained in:
parent
da75015fad
commit
66a107fa49
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in New Issue