diff options
author | Thomas Dräbing <thomas.draebing@sap.com> | 2020-07-23 07:14:08 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2020-07-23 07:14:08 +0000 |
commit | 10b158bddaccde0b846c59b5ff624113222a5bed (patch) | |
tree | 3399d377e6da8625efdd2a70f86062bcc1bbc33d | |
parent | 59262ffbe5ed015ec4bb02da1093544ec5d40152 (diff) | |
parent | 42a453ac569fd406dfcb07edd40db49d5846a9b2 (diff) |
Merge "Include request latency in httpd_log.json" into stable-3.0
-rw-r--r-- | java/com/google/gerrit/pgm/http/jetty/HttpLogJsonLayout.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/java/com/google/gerrit/pgm/http/jetty/HttpLogJsonLayout.java b/java/com/google/gerrit/pgm/http/jetty/HttpLogJsonLayout.java index 73d9ee45c7..77726609a1 100644 --- a/java/com/google/gerrit/pgm/http/jetty/HttpLogJsonLayout.java +++ b/java/com/google/gerrit/pgm/http/jetty/HttpLogJsonLayout.java @@ -16,6 +16,7 @@ package com.google.gerrit.pgm.http.jetty; import static com.google.gerrit.pgm.http.jetty.HttpLog.P_CONTENT_LENGTH; import static com.google.gerrit.pgm.http.jetty.HttpLog.P_HOST; +import static com.google.gerrit.pgm.http.jetty.HttpLog.P_LATENCY; import static com.google.gerrit.pgm.http.jetty.HttpLog.P_METHOD; import static com.google.gerrit.pgm.http.jetty.HttpLog.P_PROTOCOL; import static com.google.gerrit.pgm.http.jetty.HttpLog.P_REFERER; @@ -52,6 +53,7 @@ public class HttpLogJsonLayout extends JsonLayout { public String protocol; public String status; public String contentLength; + public String latency; public String referer; public String userAgent; @@ -65,6 +67,7 @@ public class HttpLogJsonLayout extends JsonLayout { this.protocol = getMdcString(event, P_PROTOCOL); this.status = getMdcString(event, P_STATUS); this.contentLength = getMdcString(event, P_CONTENT_LENGTH); + this.latency = getMdcString(event, P_LATENCY); this.referer = getMdcString(event, P_REFERER); this.userAgent = getMdcString(event, P_USER_AGENT); } |