From 6e1ddeefec345f06091d4c65656fb55b02d087ba Mon Sep 17 00:00:00 2001 From: Steven Bal Date: Fri, 17 May 2024 17:28:56 +0200 Subject: [PATCH 1/2] :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 From 5ee43a6734fe2e8690e23ba1e559635d5a9d5686 Mon Sep 17 00:00:00 2001 From: Steven Bal Date: Tue, 21 May 2024 13:32:40 +0200 Subject: [PATCH 2/2] :heavy_plus_sign: Add django-setup-configuration to deps it was already added to INSTALLED_APPS but missing from the dependencies --- pyproject.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/pyproject.toml b/pyproject.toml index 4ea2362..419f7db 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -54,6 +54,7 @@ dependencies = [ "celery>=5.2.7", "flower>=2.0.1", "maykin-2fa>=1.0.0", + "django-setup-configuration>=0.1.0", ] [project.urls]