mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-22 07:47:29 +00:00
19 lines
473 B
Go
19 lines
473 B
Go
|
package middleware
|
||
|
|
||
|
import (
|
||
|
"github.com/caos/zitadel/internal/telemetry"
|
||
|
"net/http"
|
||
|
|
||
|
http_utils "github.com/caos/zitadel/internal/api/http"
|
||
|
)
|
||
|
|
||
|
func DefaultTelemetryHandler(handler http.Handler) http.Handler {
|
||
|
return TelemetryHandler(http_utils.Probes...)(handler)
|
||
|
}
|
||
|
|
||
|
func TelemetryHandler(ignoredMethods ...string) func(http.Handler) http.Handler {
|
||
|
return func(handler http.Handler) http.Handler {
|
||
|
return telemetry.TelemetryHandler(handler, ignoredMethods...)
|
||
|
}
|
||
|
}
|