From 20e6fbbc33cc3cd5f45cdd7bfd57679bd4fd1180 Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Thu, 4 Dec 2025 12:18:21 +0100 Subject: [PATCH] Remove well-known from otel --- auth/otel.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/auth/otel.go b/auth/otel.go index e48aeaf0..0eae1a99 100644 --- a/auth/otel.go +++ b/auth/otel.go @@ -88,7 +88,9 @@ func setupOtel(e *echo.Echo) (func(), error) { otel.SetTracerProvider(tp) e.Use(otelecho.Middleware("kyoo.auth", otelecho.WithSkipper(func(c echo.Context) bool { - return c.Path() == "/auth/health" || c.Path() == "/auth/ready" + return (c.Path() == "/auth/health" || + c.Path() == "/auth/ready" || + strings.HasPrefix(c.Path(), "/.well-known/")) }))) return func() {