[New-bugs-announce] [issue44075] Add a PEP578 audit hook for Asyncio loop stalls
report at bugs.python.org
Sat May 8 08:19:46 EDT 2021
New submission from Tom Forbes <tom at tomforb.es>:
Detecting and monitoring loop stalls in a production asyncio application is more difficult than it could be.
Firstly you must enable debug mode for the entire loop then you need to look for warnings outputted via the asyncio logger. This makes it hard to send loop stalls to monitoring systems via something like statsd.
Ideally asyncio callbacks would always be timed and an auditevent always triggered if it passes a particular threshold. If debug mode is enabled then a warning is logged.
nosy: asvetlov, orf, yselivanov
title: Add a PEP578 audit hook for Asyncio loop stalls
versions: Python 3.11
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce