timing-asgi icon indicating copy to clipboard operation
timing-asgi copied to clipboard

ASGI middleware to record and emit timing metrics (to something like statsd)

Results 6 timing-asgi issues
Sort by recently updated
recently updated
newest added

Hi all! **The log message originating from this project does not conform to any logging configuration set by the user of this package.** I have done some investigation and figured...

What is the expected behavior when dealing with background tasks? Should the time it takes to execute them be included or excluded from the timings?

For some routes, we make use of the [background tasks](https://www.starlette.io/background/) feature in Starlette. The timing metrics we have gathered indicate that time spent executing these background tasks is being included....

bug

`get_cpu_time()` uses the Unix only `resource` package. Instead of raising an exception, I'd expect a warning message and a different method of calculating cpu time, or even set cpu_time to...

If the middleware tries to get the name of a starlete Mount you get the following error: ``` Unable to extract metric name from asgi scope: {…}, skipping statsd timing...