-
-
Save kimlindholm/1817420 to your computer and use it in GitHub Desktop.
Add X-Request-Start header so we can track queue times in New Relic RPM
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Add X-Request-Start header so we can track queue times in New Relic RPM | |
*/ | |
#include <stdio.h> | |
#include <sys/time.h> | |
struct timeval detail_time; | |
gettimeofday(&detail_time, NULL); | |
char start[20]; | |
sprintf(start, "t=%lu%06lu", detail_time.tv_sec, detail_time.tv_usec); | |
VRT_SetHdr(sp, HDR_REQ, "\020X-Request-Start:", start, vrt_magic_string_end); |
Does this work in Varnish 4.0.1?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
From presentation Improving Site Response Time, Part 3 - Varnish Configuration Step by Step