From 027ca88d833cc232c1acb8a9fce494738d81e2fa Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Mon, 19 Dec 2022 12:51:22 +0100 Subject: [PATCH] lib: enable sentry profiles_sample_rate Signed-off-by: Jens Langhammer --- authentik/lib/sentry.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/authentik/lib/sentry.py b/authentik/lib/sentry.py index f582705fe..d4cedd339 100644 --- a/authentik/lib/sentry.py +++ b/authentik/lib/sentry.py @@ -66,6 +66,9 @@ def sentry_init(**sentry_init_kwargs): kwargs = { "environment": sentry_env, "send_default_pii": CONFIG.y_bool("error_reporting.send_pii", False), + "_experiments": { + "profiles_sample_rate": float(CONFIG.y("error_reporting.sample_rate", 0.1)), + }, } kwargs.update(**sentry_init_kwargs) # pylint: disable=abstract-class-instantiated