Skip to content

Instantly share code, notes, and snippets.

View jof's full-sized avatar
🐈‍⬛
Surviving

Jonathan Lassoff jof

🐈‍⬛
Surviving
View GitHub Profile
@jof
jof / request_start_variable.patch
Created July 20, 2011 17:20 — forked from rkbodenner/request_start_variable.patch
Add a 'start_time' variable to nginx 0.7.67 to support an X-REQUEST-START header. This header is used by New Relic RPM to record queue time.
--- src/http/ngx_http_variables.c.orig 2011-07-20 17:28:36.000000000 +0000
+++ src/http/ngx_http_variables.c 2011-07-20 17:28:38.000000000 +0000
@@ -93,6 +93,9 @@
static ngx_int_t ngx_http_variable_pid(ngx_http_request_t *r,
ngx_http_variable_value_t *v, uintptr_t data);
+static ngx_int_t ngx_http_variable_start_time(ngx_http_request_t *r,
+ ngx_http_variable_value_t *v, uintptr_t data);
+
/*