Problem
Detailed function trace information does not appear when using asyncio.ensure_future
in coroutines.
Solution
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:
Before:
import asyncio
async def foo(): ensure_future(bar())
async def bar(): await asyncio.sleep(0.5)
After:
import asyncio
async def foo(): await ensure_future(bar())
async def bar(): await asyncio.sleep(0.5)
その他のヘルプ
さらに支援が必要な場合は、これらのサポートと学習リソースを確認してください:
- Explorers Hubでは、コミュニティからのサポートを受けたり、ディスカッションに参加したりすることができます。
- 当社サイトで答えを見つけて、サポートポータルの使用方法を確認してください。
- Linux、Windows、およびmacOS向けトラブルシューティングツールであるNew Relic Diagnosticsを実行してください。
- New Relicの とandドキュメント をご確認ください。