2021-08-24 19:34:29 +00:00
|
|
|
if ENV['SENTRY_DSN']
|
|
|
|
Sentry.init do |config|
|
|
|
|
config.dsn = ENV['SENTRY_DSN']
|
|
|
|
config.enabled_environments = %w[staging production]
|
2022-05-09 08:53:19 +00:00
|
|
|
|
|
|
|
# To activate performance monitoring, set one of these options.
|
|
|
|
# We recommend adjusting the value in production:
|
2022-07-07 15:07:05 +00:00
|
|
|
config.traces_sample_rate = 0.1 if ENV['ENABLE_SENTRY_TRANSACTIONS']
|
2022-05-09 08:53:19 +00:00
|
|
|
|
|
|
|
config.excluded_exceptions += ['Rack::Timeout::RequestTimeoutException']
|
|
|
|
|
|
|
|
# to track post data in sentry
|
|
|
|
config.send_default_pii = true unless ENV['DISABLE_SENTRY_PII']
|
2021-08-24 19:34:29 +00:00
|
|
|
end
|
2019-08-14 09:48:44 +00:00
|
|
|
end
|