From 9d2ce0081202c33a8aa596f19575230869fb981c Mon Sep 17 00:00:00 2001 From: Alex Bednarek Date: Thu, 4 Apr 2024 16:10:28 -0400 Subject: [PATCH] Adding sentry sample rate from environment. --- api/datalake_api/app.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/datalake_api/app.py b/api/datalake_api/app.py index bc09b88..ee5d380 100644 --- a/api/datalake_api/app.py +++ b/api/datalake_api/app.py @@ -40,9 +40,10 @@ logging.getLogger('boto3.resources.action').setLevel(logging.WARN) dsn = os.environ.get("SENTRY_DSN") +traces_sample_rate = os.environ.get("SENTRY_TRACES_SAMPLE_RATE") sentry_sdk.init(dsn=dsn, integrations=[FlaskIntegration()], - traces_sample_rate=1.0) + traces_sample_rate=traces_sample_rate) @app.route('/')