# frozen_string_literal: true

if Rails.env.eql?('production') && ENV['SENTRY_DSN'].present?
   Sentry.init do |config|
    config.dsn = ENV['SENTRY_DSN']
    config.breadcrumbs_logger = [:active_support_logger]

    # Send 5% of transactions for performance monitoring
    config.traces_sample_rate = 0.05
  end
end

# frozen_string_literal: true

if Rails.env.eql?('production') && ENV['SENTRY_DSN'].present?
   Sentry.init do |config|
    config.dsn = ENV['SENTRY_DSN']
    config.breadcrumbs_logger = [:active_support_logger]

    # Send 10% of transactions for performance monitoring
    config.traces_sample_rate = 0.1
  end
end

Revert "Reduce the Sentry sampling to 5%"
Revert "Reduce the Sentry sampling to 5%"

This reverts commit 507d08ed62231721d88869056e3023a3eac153f0.
