Skip to content

feat(coderd/httpmw): log start timestamp for http requests #9776

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 27, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
s/_timestamp//
  • Loading branch information
mafredri committed Sep 19, 2023
commit 8869937bb059c45dc04485c3a00d3baec8d5e1cf
2 changes: 1 addition & 1 deletion coderd/httpmw/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func Logger(log slog.Logger) func(next http.Handler) http.Handler {
// actually logging the request. This can also be useful when
// filtering logs that started at a certain time (compared to
// trying to compute the value).
slog.F("start_timestamp", start),
slog.F("start", start),
)

next.ServeHTTP(sw, r)
Expand Down