Merge pull request #2548 from Stono/master

Implement generate-request-id
This commit is contained in:
k8s-ci-robot 2018-05-21 13:55:12 -07:00 committed by GitHub
commit b8b5e5bc51
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 0 deletions

View file

@ -277,7 +277,9 @@ http {
# If no such header is provided, it can provide a random value.
map $http_x_request_id $req_id {
default $http_x_request_id;
{{ if $cfg.GenerateRequestId }}
"" $request_id;
{{ end }}
}
{{ if $cfg.ComputeFullForwardedFor }}