upgrade sentry gems, enable async and disable performance analyses

This commit is contained in:
2021-08-13 19:30:34 +02:00
parent 7350e3760b
commit 1dc925ee9e
4 changed files with 27 additions and 19 deletions

View File

@@ -1,13 +1,7 @@
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
config.async = lambda do |event, hint|
SentryWorker.perform_async(event, hint)
end
end