From 497689eacf4f9430a9e44ae38ce59dc3463ff267 Mon Sep 17 00:00:00 2001 From: Alex Bednarek Date: Thu, 4 Apr 2024 16:55:03 -0400 Subject: [PATCH] Adding sample rate to datalake sentry monitoring. --- api/datalake_api/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/datalake_api/app.py b/api/datalake_api/app.py index ee5d380..183e226 100644 --- a/api/datalake_api/app.py +++ b/api/datalake_api/app.py @@ -40,7 +40,7 @@ logging.getLogger('boto3.resources.action').setLevel(logging.WARN) dsn = os.environ.get("SENTRY_DSN") -traces_sample_rate = os.environ.get("SENTRY_TRACES_SAMPLE_RATE") +traces_sample_rate = float(os.environ.get("SENTRY_TRACES_SAMPLE_RATE")) sentry_sdk.init(dsn=dsn, integrations=[FlaskIntegration()], traces_sample_rate=traces_sample_rate)