diff --git a/runtime/server_http_request.go b/runtime/server_http_request.go index ed7ff0233..157f91b23 100644 --- a/runtime/server_http_request.go +++ b/runtime/server_http_request.go @@ -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 diff --git a/runtime/server_http_request_test.go b/runtime/server_http_request_test.go index 1c56e9e72..b450ea433 100644 --- a/runtime/server_http_request_test.go +++ b/runtime/server_http_request_test.go @@ -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",