Skip to content

Commit

Permalink
Adding sample rate to datalake sentry monitoring.
Browse files Browse the repository at this point in the history
  • Loading branch information
ABPLMC committed Apr 4, 2024
1 parent 9d2ce00 commit 497689e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/datalake_api/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 497689e

Please sign in to comment.