add sentry config

This commit is contained in:
2021-04-24 20:29:57 +02:00
parent 8a8d3663d6
commit f43ba76984
2 changed files with 15 additions and 0 deletions

View File

@@ -9,3 +9,5 @@ DATABASE_HOST=localhost
DATABASE_PORT=5432
REDIS_URL=
SENTRY_DSN=

View File

@@ -0,0 +1,13 @@
Sentry.init do |config|
config.dsn = ENV['SENTRY_DSN']
config.breadcrumbs_logger = [:active_support_logger]
# Set tracesSampleRate to 1.0 to capture 100%
# of transactions for performance monitoring.
# We recommend adjusting this value in production
config.traces_sample_rate = 1.0
# or
config.traces_sampler = lambda do |context|
true
end
end