Skip to content

Commit

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

0 comments on commit 9d2ce00

Please sign in to comment.