Merge pull request #2548 from Stono/master
Implement generate-request-id
This commit is contained in:
commit
b8b5e5bc51
3 changed files with 12 additions and 0 deletions
|
|
@ -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 }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue