Skip to content

Commit

Permalink
Log dur in nanoseconds, and call it duration
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinmcconnell committed Mar 29, 2024
1 parent 437e586 commit 2ebd3a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/server/logging_middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func (h *LoggingMiddleware) ServeHTTP(w http.ResponseWriter, r *http.Request) {
"request_id", requestID,
"status", writer.statusCode,
"target", target,
"dur", elapsed.Milliseconds(),
"duration", elapsed.Nanoseconds(),
"method", r.Method,
"req_content_length", r.ContentLength,
"req_content_type", reqContent,
Expand Down

0 comments on commit 2ebd3a5

Please sign in to comment.