Skip to content

Commit

Permalink
Add jsonfields custom header
Browse files Browse the repository at this point in the history
Signed-off-by: cw-sakamoto <sakamoto@chatwork.com>
  • Loading branch information
cw-sakamoto authored and youngnick committed Oct 20, 2019
1 parent 5f0cb11 commit 58bed64
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/envoy/accesslog.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ var JSONFields = map[string]string{
"upstream_service_time": "%RESP(X-ENVOY-UPSTREAM-SERVICE-TIME)%",
"user_agent": "%REQ(USER-AGENT)%",
"x_forwarded_for": "%REQ(X-FORWARDED-FOR)%",
"x_trace_id": "%REQ(X-TRACE-ID)%",
}

// DefaultFields are fields that will be included by default when JSON logging is enabled.
Expand Down

0 comments on commit 58bed64

Please sign in to comment.