mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-20 23:07:33 +00:00
fa9f581d56
* chore: move to new org * logging * fix: org rename caos -> zitadel Co-authored-by: adlerhurst <silvan.reusser@gmail.com>
20 lines
480 B
Go
20 lines
480 B
Go
package middleware
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"github.com/zitadel/zitadel/internal/telemetry"
|
|
|
|
http_utils "github.com/zitadel/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...)
|
|
}
|
|
}
|