Skip to content

Commit 542c3b6

Browse files
authored
Merge pull request #17 from Intellection/log_x_proxy_backend_latency_headers
[SRE-3200] Log X-Proxy-Backend latency headers
2 parents dffdcc2 + 9d3c2e5 commit 542c3b6

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 1.25.2-3
4+
5+
* Log `X-Proxy-Backend` latency headers.
6+
37
## 1.25.2-2
48

59
* Add `X-Proxy-Backend` latency headers.

config/log.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ log_format main_json escape=json
1313
'"http_user_agent":"$http_user_agent",'
1414
'"http_x_amzn_trace_id":"$http_x_amzn_trace_id",'
1515
'"http_x_forwarded_for":"$http_x_forwarded_for",'
16+
'"http_x_proxy_backend_connect_time":"$upstream_connect_time",'
17+
'"http_x_proxy_backend_header_time":"$upstream_header_time",'
18+
'"http_x_proxy_backend_total_time":"$request_time",'
1619
'"proxy_connection":"$proxy_connection",'
1720
'"proxy_x_forwarded_port":"$proxy_x_forwarded_port",'
1821
'"proxy_x_forwarded_proto":"$proxy_x_forwarded_proto",'

0 commit comments

Comments
 (0)