influxdb/services/httpd
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
..
config.go NEW max-body-size config; HTTP 413 if body exceeds max size; fixes #8299 2017-06-05 21:38:33 +08:00
config_test.go Add config test; add negative value test 2017-06-06 08:42:45 +08:00
gzip.go rework gzip compressor so it is lazily created for 200 OK requests only 2017-06-05 21:38:32 +08:00
handler.go Support pre-existing request ID headers 2017-08-23 13:42:33 +01:00
handler_test.go Support pre-existing request ID headers 2017-08-23 13:42:33 +01:00
io.go Add config test; add negative value test 2017-06-06 08:42:45 +08:00
io_test.go NEW max-body-size config; HTTP 413 if body exceeds max size; fixes #8299 2017-06-05 21:38:33 +08:00
listen.go Teach the http service how to enforce connection limits 2016-05-12 16:25:16 -04:00
listen_test.go Use unbuffered error channels in tests 2017-01-17 10:53:15 -08:00
pprof.go Adds mutex profile 2017-08-04 14:36:39 +01:00
requests.go initial fga work 2017-05-26 13:16:27 -07:00
response_logger.go Log server error response messages 2017-08-16 21:32:58 +01:00
response_writer.go Return errors in CSV responses 2017-07-25 09:44:02 -05:00
response_writer_test.go Separate the query engine into a separate package 2017-08-16 13:38:43 -05:00
service.go Allow panic recovery to be disabled 2017-06-29 19:44:25 +01:00