From 97a8d8ba6006672e66f51862f253d972fa3d83ce Mon Sep 17 00:00:00 2001 From: Marc 'risson' Schmitt Date: Fri, 28 Jun 2024 12:29:29 +0200 Subject: [PATCH] root: allow extra sentry settings (#10269) --- authentik/lib/sentry.py | 3 ++- website/docs/installation/configuration.mdx | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/authentik/lib/sentry.py b/authentik/lib/sentry.py index b42a299660..434de90a0c 100644 --- a/authentik/lib/sentry.py +++ b/authentik/lib/sentry.py @@ -59,8 +59,9 @@ def sentry_init(**sentry_init_kwargs): "_experiments": { "profiles_sample_rate": float(CONFIG.get("error_reporting.sample_rate", 0.1)), }, + **sentry_init_kwargs, + **CONFIG.get_dict_from_b64_json("error_reporting.extra_args", {}), } - kwargs.update(**sentry_init_kwargs) sentry_sdk_init( dsn=CONFIG.get("error_reporting.sentry_dsn"), diff --git a/website/docs/installation/configuration.mdx b/website/docs/installation/configuration.mdx index 403cd767b8..0f6998c36c 100644 --- a/website/docs/installation/configuration.mdx +++ b/website/docs/installation/configuration.mdx @@ -235,6 +235,10 @@ Disable the inbuilt update-checker. Defaults to `false`. Whether or not to send personal data, like usernames. Defaults to `false`. +- `AUTHENTIK_ERROR_REPORTING__EXTRA_ARGS` + + Base64-encoded sentry_init arguments. See [Sentry's documentation](https://docs.sentry.io/platforms/python/configuration/options/) for available options. + ### `AUTHENTIK_EMAIL` - `AUTHENTIK_EMAIL__HOST`