lib: enable sentry profiles_sample_rate

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2022-12-19 12:51:22 +01:00
parent 9d5b9204fc
commit 027ca88d83

View file

@ -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