From 6e1ddeefec345f06091d4c65656fb55b02d087ba Mon Sep 17 00:00:00 2001 From: Steven Bal Date: Fri, 17 May 2024 17:28:56 +0200 Subject: [PATCH] :wrench: Add ELASTIC_APM_TRANSACTION_SAMPLE_RATE --- open_api_framework/conf/base.py | 1 + 1 file changed, 1 insertion(+) diff --git a/open_api_framework/conf/base.py b/open_api_framework/conf/base.py index 3a626af..ad66a05 100644 --- a/open_api_framework/conf/base.py +++ b/open_api_framework/conf/base.py @@ -610,6 +610,7 @@ def init_sentry(before_send: Callable | None = None): ), "SECRET_TOKEN": config("ELASTIC_APM_SECRET_TOKEN", "default"), "SERVER_URL": ELASTIC_APM_SERVER_URL, + "TRANSACTION_SAMPLE_RATE": config("ELASTIC_APM_TRANSACTION_SAMPLE_RATE", 0.1), } if not ELASTIC_APM_SERVER_URL: ELASTIC_APM["ENABLED"] = False