Skip to content

Commit 66d5902

Browse files
committed
httpev: use keys without . for logging
easier on angle-grinder and on the eyes in general
1 parent f7d4d9b commit 66d5902

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

httpev_common.ml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -107,14 +107,14 @@ let show_request req =
107107
(header_safe req "x-request-id")
108108

109109
let pairs_of_request req : Logger.Pairs.t =
110-
[ "req.id", string_of_int req.id;
111-
"client.addr", show_client_addr req;
112-
"duration", sprintf "%.4f" (Time.get () -. req.conn);
113-
"duration.recv", sprintf "%.4f" (req.recv -. req.conn);
114-
"header.host", header_safe req "host";
110+
[ "req_id", string_of_int req.id;
111+
"client_addr", show_client_addr req;
112+
"http_duration", sprintf "%.4f" (Time.get () -. req.conn);
113+
"http_recv_duration", sprintf "%.4f" (req.recv -. req.conn);
114+
"http_host", header_safe req "host";
115115
"url", req.url;
116-
"header.user-agent", header_safe req "user-agent";
117-
"header.req-id", header_safe req "x-request-id"
116+
"http_user_agent", header_safe req "user-agent";
117+
"http_req_id", header_safe req "x-request-id"
118118
]
119119

120120
let status_code : reply_status -> int = function

0 commit comments

Comments
 (0)