Skip to content

Commit 7a7bbcf

Browse files
Log health check requests in example app
1 parent 1817d55 commit 7a7bbcf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

example/upstream/main.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ import (
88
"time"
99
)
1010

11-
func upHandler(w http.ResponseWriter, _ *http.Request) {
11+
func upHandler(w http.ResponseWriter, r *http.Request) {
12+
slog.Info("Health request", "method", r.Method, "url", r.URL)
1213
w.WriteHeader(http.StatusOK)
1314
}
1415

0 commit comments

Comments
 (0)