influxdb/services
Edd Robinson 64933fea17 Support pre-existing request ID headers
Other applications or services sometimes expose a header containing a
unique ID, which can then be included in logging or response information
to allow an operator to link inter-service requests. The most common
header name used by services in the wild appears to be `X-Request-ID`,
but `Request-Id` is also used.

This commit adds support for specifying either `X-Request-ID` or
`Request-Id` headers, which will then be used by InfluxDB when logging
request information, and also in the `X-Request-ID` and `Request-Id`
response headers.

We populate both `X-Request-ID` and `Request-Id` to maintain backwards
compatibility with previous version, and to support the more common
`X-Request-ID` header name.

If both `X-Request-ID` and `Request-Id` are specified, then
`X-Request-ID` is used.

If neither header is specified, then in line with previous behaviour, we
generate a v1 UUID.
2017-08-23 13:42:33 +01:00
..
collectd 8426: updated code based on pull-request feedback 2017-06-23 14:59:01 -04:00
continuous_querier Remove TimeRange function and replace with a more accurate ConditionExpr function 2017-08-16 16:45:35 -05:00
graphite initial fga work 2017-05-26 13:16:27 -07:00
httpd Support pre-existing request ID headers 2017-08-23 13:42:33 +01:00
meta Separate the query engine into a separate package 2017-08-16 13:38:43 -05:00
opentsdb initial fga work 2017-05-26 13:16:27 -07:00
precreator Report subset of config values in SHOW DIAGNOSTICS 2017-03-14 11:34:19 -07:00
retention Merge remote-tracking branch 'upstream/master' into tsi 2017-03-15 10:13:32 -06:00
snapshotter Rename zap import back to github.com/uber-go/zap 2017-02-17 17:17:22 -06:00
subscriber Make services/subscriber golintable 2017-04-03 18:32:36 -04:00
udp Update udp port to be in valid range 2017-07-27 13:26:37 +01:00