zitadel/internal/api/http/middleware/metrics_interceptor.go

14 lines
347 B
Go
Raw Normal View History

package middleware
import (
"net/http"
"github.com/zitadel/zitadel/internal/telemetry/metrics"
)
func MetricsHandler(metricTypes []metrics.MetricType, ignoredMethods ...string) func(http.Handler) http.Handler {
return func(handler http.Handler) http.Handler {
return metrics.NewMetricsHandler(handler, metricTypes, ignoredMethods...)
}
}