mirror of
https://github.com/open-telemetry/opentelemetry-python-contrib.git
synced 2025-07-29 21:23:55 +08:00
fix(async-io): return coro when __name__ is not present (#2541)
This commit is contained in:

committed by
GitHub

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",
|
||||
|
Reference in New Issue
Block a user