Skip to content

Commit 27c3d6d

Browse files
committed
Disable logging and metrics for health checks
These end up adding a lot of noise to logs and are rarely useful.
1 parent b8b52fc commit 27c3d6d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

server/handler/health.go

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ type HealthCheck struct {
2828

2929
func Health() http.Handler {
3030
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
31+
bassapp.IgnoreAll(r)
3132
baseapp.WriteJSON(w, http.StatusOK, &HealthCheck{Status: "ok", Version: version.GetVersion()})
3233
})
3334
}

0 commit comments

Comments
 (0)