From 0db638a3f0bbc93c38b51170ee58eb15d110876c Mon Sep 17 00:00:00 2001 From: Alex Bednarek Date: Fri, 5 Apr 2024 14:30:27 -0400 Subject: [PATCH] Sentry sampling rate addition. --- 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 9c4082d..26219f2 100644 --- a/api/datalake_api/app.py +++ b/api/datalake_api/app.py @@ -41,7 +41,7 @@ dsn = os.environ.get("SENTRY_DSN") traces_sample_rate = \ - float(os.environ.get("SENTRY_TRACES_SAMPLE_RATE"), 0) or None + float(os.environ.get("SENTRY_TRACES_SAMPLE_RATE"), None) sentry_sdk.init(dsn=dsn, integrations=[FlaskIntegration()], traces_sample_rate=traces_sample_rate)