With Errbit, you can set up your own server and host the information regarding your exceptions there. You can also hire Airbrake's hosting services or easily setup Errbit on Heroku. We're still including the rollbar gem so we don't harm CONSUL users who are using rollbar. Note Errbit requires an old version of Airbrake which forced users to configure the gem. So we're adding the current environtment to `ignore_environments` when the project id isn't defined; this way the application won't crash in this case.
10 lines
407 B
Ruby
10 lines
407 B
Ruby
Airbrake.configure do |config|
|
|
config.host = Rails.application.secrets.errbit_host
|
|
config.project_id = Rails.application.secrets.errbit_project_id
|
|
config.project_key = Rails.application.secrets.errbit_project_key
|
|
|
|
config.environment = Rails.env
|
|
config.ignore_environments = %w[development test]
|
|
config.ignore_environments += [Rails.env] if Rails.application.secrets.errbit_project_id.blank?
|
|
end
|