exposing request start time as a variable to use in a custom header

JD Harrington psi at y0ru.net
Thu Jun 7 02:48:27 UTC 2012


I'm using New Relic RPM for performance profiling and they have an
optional metric for time spent in request queueing. In order to
compute this metric, they require that the frontend server add an
X-QUEUE-START request header with a timestamp in microseconds before
handing the request off to the application. There are a couple of
patches floating around that add this ability to various versions of

I'm wondering if this or something similar might be considered for
inclusion in a future official release of nginx.

Details about the New Relic feature:

The currently available patches:



More information about the nginx mailing list