mirror of
https://github.com/ferdzo/fs.git
synced 2026-04-05 01:56:25 +00:00
Auth for metrics, removed unwanted metrics and fixed tests.
This commit is contained in:
@@ -25,7 +25,7 @@ func Middleware(
|
||||
return
|
||||
}
|
||||
|
||||
if r.URL.Path == "/healthz" || r.URL.Path == "/metrics" {
|
||||
if r.URL.Path == "/healthz" {
|
||||
metrics.Default.ObserveAuth("bypass", "none", "public_endpoint")
|
||||
next.ServeHTTP(w, r.WithContext(WithRequestContext(r.Context(), authCtx)))
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user