Skip to content

Commit

Permalink
Merge 8474618 into 8c774c1
Browse files Browse the repository at this point in the history
  • Loading branch information
smb158 committed Jul 25, 2019
2 parents 8c774c1 + 8474618 commit a60700c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions runtime/server_http_request.go
Expand Up @@ -76,6 +76,7 @@ func NewServerHTTPRequest(
logFields := []zap.Field{
zap.String(logFieldEndpointID, endpoint.EndpointName),
zap.String(logFieldEndpointHandler, endpoint.HandlerName),
zap.String(logFieldRequestURL, r.URL.Path),
}

// put request scope tags on context
Expand Down
1 change: 1 addition & 0 deletions runtime/server_http_request_test.go
Expand Up @@ -1665,6 +1665,7 @@ func TestIncomingHTTPRequestServerLog(t *testing.T) {
"statusCode": float64(200),
"endpointHandler": "foo",
"endpointID": "foo",
"url": "/foo",

"Accept-Encoding": "gzip",
"User-Agent": "Go-http-client/1.1",
Expand Down

0 comments on commit a60700c

Please sign in to comment.