diff --git a/main.go b/main.go index 5c51f49..ba59f24 100644 --- a/main.go +++ b/main.go @@ -259,7 +259,12 @@ func startHTTPListener(bind, port string) { addr = bind + ":" + port } // Wrap the handler with OpenTelemetry instrumentation - handler := otelhttp.NewHandler(http.DefaultServeMux, "fga-sync") + handler := otelhttp.NewHandler(http.DefaultServeMux, "fga-sync", + otelhttp.WithFilter(func(r *http.Request) bool { + p := r.URL.Path + return p != "/livez" && p != "/readyz" + }), + ) httpServer = &http.Server{ Addr: addr,