Skip to content

Commit 8fbeba3

Browse files
committed
Add http_x_amzn_trace_id to json logging (for X-Amzn-Trace-Id header)
https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-request-tracing.html
1 parent a527e26 commit 8fbeba3

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
## 1.19.5-5
44

5+
* Add `http_x_amzn_trace_id` to json logging (for `X-Amzn-Trace-Id` header).
56
* Add `http_connection` to json logging (for `Connection` header).
67
* Fix "incorrect" spelling of header.
78

config/log.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ log_format main_json escape=json
1010
'"http_connection":"$http_connection",'
1111
'"http_referer":"$http_referer",'
1212
'"http_user_agent":"$http_user_agent",'
13+
'"http_x_amzn_trace_id":"$http_x_amzn_trace_id",'
1314
'"http_x_forwarded_for":"$http_x_forwarded_for",'
1415
'"proxy_x_forwarded_port":"$proxy_x_forwarded_port",'
1516
'"proxy_x_forwarded_proto":"$proxy_x_forwarded_proto",'

0 commit comments

Comments
 (0)