# 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]
  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

Enable performance monitoring in Sentry
Enable performance monitoring in Sentry

See https://docs.sentry.io/platforms/ruby/guides/rails/performance/
