Community
Participate
Working Groups
The stats handler should measure the ave,max and stddev of the time from when the request is first received by the connector until the time it is first seen by the stats handler. It currently has the request timestamp, so it has this information available. However, there is a small complication. The request.setTimestamp(long) method is called in two places: HttpConnection$RequestHandler.startRequest - when the request line is first parsed. HttpConnection.handleRequest -> Connection.customizeRequest - which is called after the request is dispatched. I think the second of these should be removed, as it will only be nano seconds before the request is handed to the stats server. The first of these is after the request is dispatched, but then all handling in Jetty is dispatched - so it will do for now... perhaps we can eventually replace it with a timestamp set on the endpoint representing the last dispatched time. Or maybe we have both?
https://github.com/eclipse/jetty.project/issues/87