Please sign in to comment.
Timing was broken for async endpoints, fix it...
There's only one Rack::Informant instance per app (not per request!), so for async endpoints, @start would get overwritten by each subsequent request. An outstanding request would therefore appear to have started whenever the most recent request came in, rather than when it actually started, and thus be reported as quicker than it was. Fix by using a local variable in #call (which *is* per-request) rather than an instance variable. Thanks @ept for pointing this out.
- Loading branch information...