diff --git a/config/initializers/sentry.rb b/config/initializers/sentry.rb index a65106b50..2d4008a4f 100644 --- a/config/initializers/sentry.rb +++ b/config/initializers/sentry.rb @@ -3,5 +3,5 @@ Sentry.init do |config| config.send_default_pii = false config.enabled_environments = ['production'] config.breadcrumbs_logger = [:active_support_logger] - config.traces_sample_rate = 0.001 + config.traces_sample_rate = ENV['SENTRY_ENABLED'] == 'enabled' ? 0.001 : nil end