Skip to content

Commit

Permalink
Update sentry config
Browse files Browse the repository at this point in the history
  • Loading branch information
gi0baro committed May 29, 2024
1 parent a06b971 commit 9565352
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,12 @@
app.config.url_default_namespace = "main"
app.config.private_hostname = os.environ.get('PRIVATE_HOSTNAME', 'localhost')
app.config.Haml.set_as_default = True
app.config.Sentry.environment = os.environ.get('ENVIRONMENT', 'development')
app.config.Sentry.dsn = os.environ.get('SENTRY_DSN', '')
app.config.Sentry.release = os.environ.get('RELEASE', 'latest')
app.config.Sentry.enable_tracing = os.environ.get('SENTRY_TRACING') == 'true'
app.config.Sentry.tracing_sample_rate = 0.1
app.config.Sentry.tracing_exclude_routes = ['private.health']

app.use_extension(Haml)
app.use_extension(Sentry)
Expand Down

0 comments on commit 9565352

Please sign in to comment.