diff --git a/authentik/lib/default.yml b/authentik/lib/default.yml index 5fd47caed..54e2268e0 100644 --- a/authentik/lib/default.yml +++ b/authentik/lib/default.yml @@ -36,7 +36,7 @@ error_reporting: enabled: false environment: customer send_pii: false - sample_rate: 0.3 + sample_rate: 0.1 # Global email settings email: diff --git a/authentik/lib/sentry.py b/authentik/lib/sentry.py index 2f9b165df..bda251bdf 100644 --- a/authentik/lib/sentry.py +++ b/authentik/lib/sentry.py @@ -95,7 +95,7 @@ def traces_sampler(sampling_context: dict) -> float: # Ignore all healthcheck routes if path.startswith("/-/health") or path.startswith("/-/metrics"): return 0 - return float(CONFIG.y("error_reporting.sample_rate", 0.5)) + return float(CONFIG.y("error_reporting.sample_rate", 0.1)) def before_send(event: dict, hint: dict) -> Optional[dict]: diff --git a/internal/web/web.go b/internal/web/web.go index 8714e8363..c73931ca6 100644 --- a/internal/web/web.go +++ b/internal/web/web.go @@ -6,7 +6,6 @@ import ( "net" "net/http" - sentryhttp "github.com/getsentry/sentry-go/http" "github.com/gorilla/handlers" "github.com/gorilla/mux" "github.com/pires/go-proxyproto" @@ -36,7 +35,6 @@ type WebServer struct { func NewWebServer(g *gounicorn.GoUnicorn) *WebServer { l := log.WithField("logger", "authentik.router") mainHandler := mux.NewRouter() - mainHandler.Use(sentryhttp.New(sentryhttp.Options{}).Handle) mainHandler.Use(handlers.ProxyHeaders) mainHandler.Use(handlers.CompressHandler) loggingHandler := mainHandler.NewRoute().Subrouter()