Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Add X-Request-Start header so we can track queue times in New Relic RPM
/*
* 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);
@kimlindholm

This comment has been minimized.

Copy link
Owner Author

kimlindholm commented Feb 13, 2012

Version for Amazon Linux AMI

@kimlindholm

This comment has been minimized.

Copy link
Owner Author

kimlindholm commented Feb 19, 2012

@mazzyrob

This comment has been minimized.

Copy link

mazzyrob commented May 21, 2015

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
You can’t perform that action at this time.