2024-04-08 11:29:11 -05:00
|
|
|
if ENV["SENTRY_DSN"].present?
|
|
|
|
Sentry.init do |config|
|
|
|
|
config.dsn = ENV["SENTRY_DSN"]
|
2024-12-02 10:53:16 -05:00
|
|
|
config.environment = ENV["RAILS_ENV"]
|
2024-04-08 11:29:11 -05:00
|
|
|
config.breadcrumbs_logger = [ :active_support_logger, :http_logger ]
|
2025-01-30 13:13:37 -06:00
|
|
|
config.enabled_environments = %w[production]
|
2024-04-08 11:29:11 -05:00
|
|
|
|
|
|
|
# Set traces_sample_rate to 1.0 to capture 100%
|
|
|
|
# of transactions for performance monitoring.
|
|
|
|
# We recommend adjusting this value in production.
|
2025-02-05 11:33:59 -06:00
|
|
|
config.traces_sample_rate = 0.5
|
2024-04-08 11:29:11 -05:00
|
|
|
|
|
|
|
# Set profiles_sample_rate to profile 100%
|
|
|
|
# of sampled transactions.
|
|
|
|
# We recommend adjusting this value in production.
|
2025-02-05 11:33:59 -06:00
|
|
|
config.profiles_sample_rate = 0.5
|
2024-04-08 11:29:11 -05:00
|
|
|
end
|
|
|
|
end
|