Sha256: 0bcfa62c1081629e7e6bce8c914432a99a5e5eb12b9bb508a53c8b7052178d07

Contents?: true

Size: 1.67 KB

Versions: 6

Compression:

Stored size: 1.67 KB

Contents

require 'rollbar/rails'
Rollbar.configure do |config|
  config.access_token = <%= access_token_expr %>

  # Without configuration, Rollbar is enabled by in all environments. 
  # To disable in specific environments, set config.enabled=false.
  # Here we'll disable in 'test':
  if Rails.env.test?
    config.enabled = false
  end

  # By default, Rollbar will try to call the `current_user` controller method
  # to fetch the logged-in user object, and then call that object's `id`,
  # `username`, and `email` methods to fetch those properties. To customize:
  # config.person_method = "my_current_user"
  # config.person_id_method = "my_id"
  # config.person_username_method = "my_username"
  # config.person_email_method = "my_email"

  # If you want to attach custom data to all exception and message reports,
  # provide a lambda like the following. It should return a hash.
  # config.custom_data_method = lambda { {:some_key => "some_value" } }

  # Add exception class names to the exception_level_filters hash to
  # change the level that exception is reported at. Note that if an exception
  # has already been reported and logged the level will need to be changed
  # via the rollbar interface.
  # Valid levels: 'critical', 'error', 'warning', 'info', 'debug', 'ignore'
  # 'ignore' will cause the exception to not be reported at all.
  # config.exception_level_filters.merge!('MyCriticalException' => 'critical')
  
  # Enable asynchronous reporting (uses girl_friday or Threading if girl_friday
  # is not installed)
  # config.use_async = true
  # Supply your own async handler:
  # config.async_handler = Proc.new { |payload|
  #  Thread.new { Rollbar.process_payload(payload) }
  # }
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rollbar-0.10.4 lib/generators/rollbar/templates/initializer.rb
rollbar-0.10.3 lib/generators/rollbar/templates/initializer.rb
rollbar-0.10.2 lib/generators/rollbar/templates/initializer.rb
rollbar-0.10.1 lib/generators/rollbar/templates/initializer.rb
rollbar-0.10.0 lib/generators/rollbar/templates/initializer.rb
rollbar-0.9.14 lib/generators/rollbar/templates/initializer.rb