mirror of
https://github.com/zulip/zulip.git
synced 2025-11-09 16:37:23 +00:00
Previously, we counted not just the time required to process a particular request, but also the time required to import+find the view function via urls.py. The latter is usually fast, but when a new Django thread starts up, it can take significant time, resulting in us flagging slow requests on each server restart and also when a new Django thread starts up on prod to handle requests. This change means that we no longer include that startup time as part of request processing time -- but we still log it in the case that it was more than 5ms, so that we can identify why a particular request was slower than expected if high startup times become a problem. We annotate the time in log lines as "+start" rather than just "start" to make clear that it's not counted in the total. (imported from commit c677682e23b26005060390d85d386234f4f463ad)
12 KiB
12 KiB