Sha256: 59f6ac6fd535c51b225132abd3d803e4032159af2a20985acf19b6af0000fc92
Contents?: true
Size: 754 Bytes
Versions: 21
Compression:
Stored size: 754 Bytes
Contents
Rollbar.configure do |config| # Fetch the access token from the environment. config.access_token = ENV['ROLLBAR_ACCESS_TOKEN'] # Only use Rollbar in production when there's a token configured. unless config.access_token and Rails.env.production? config.enabled = false end # Enable delayed reporting (using Sidekiq) config.use_sidekiq # Enable "Person" feature of Rollbar in the context of a "Shop" config.person_method = 'current_shop' config.person_username_method = 'shopify_domain' # Add custom handlers. config.before_process << proc do |options| if options[:exception].is_a?(ActiveResource::ClientError) and options[:exception].message.include?('Too Many Requests') raise Rollbar::Ignore end end end
Version data entries
21 entries across 21 versions & 1 rubygems