mirror of
https://github.com/open-telemetry/opentelemetry-python-contrib.git
synced 2025-07-31 22:23:12 +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):
|
async def trace_coroutine(self, coro):
|
||||||
if not hasattr(coro, "__name__"):
|
if not hasattr(coro, "__name__"):
|
||||||
return
|
return coro
|
||||||
start = default_timer()
|
start = default_timer()
|
||||||
attr = {
|
attr = {
|
||||||
"type": "coroutine",
|
"type": "coroutine",
|
||||||
|
Reference in New Issue
Block a user