mirror of
https://github.com/ferdzo/fs.git
synced 2026-04-05 08:46:24 +00:00
Auth for metrics, removed unwanted metrics and fixed tests.
This commit is contained in:
@@ -90,10 +90,8 @@ func HTTPMiddleware(logger *slog.Logger, cfg Config) func(http.Handler) http.Han
|
||||
ww := middleware.NewWrapResponseWriter(w, r.ProtoMajor)
|
||||
op := metricOperationLabel(r)
|
||||
metrics.Default.IncHTTPInFlightOp(op)
|
||||
metrics.Default.IncWorkerPoolActive()
|
||||
defer func() {
|
||||
metrics.Default.DecHTTPInFlightOp(op)
|
||||
metrics.Default.DecWorkerPoolActive()
|
||||
}()
|
||||
requestID := middleware.GetReqID(r.Context())
|
||||
if requestID != "" {
|
||||
|
||||
Reference in New Issue
Block a user