Detailed function trace information does not appear when using
asyncio.ensure_future in coroutines.
Futures created from
ensure_future must be awaited in the same coroutine in which they've been created. For example,in the Before section,
await is not present with
ensure_future, which would result in missing information:
import asyncioasync def foo():ensure_future(bar())async def bar():await asyncio.sleep(0.5)
import asyncioasync def foo():await ensure_future(bar())async def bar():await asyncio.sleep(0.5)
If you need more help, check out these support and learning resources:
- Browse the Explorers Hub to get help from the community and join in discussions.
- Find answers on our sites and learn how to use our support portal.
- Run New Relic Diagnostics, our troubleshooting tool for Linux, Windows, and macOS.
- Review New Relic's data security and licenses documentation.