Add this line to your application's Gemfile:
gem 'bugno'
And then execute:
$ bundle
$ rails g bugno [API-KEY]
To setup additional configuration navigate to config/initializers/bugno.rb
in your app directory
Send exceptions asynchronous
config.send_in_background = true
Change following line to skip rails exceptions:
config.exclude_rails_exceptions = false
Suppress only exceptions you wish to (e.g. ActionController::RoutingError), make sure config.exclude_rails_exceptions = true
specified:
config.excluded_exceptions = ['ActionController::RoutingError']
config.usage_environments = %w[production]
config.usage_environments << 'development'
Allows you to send user related data
config.current_user_method = 'current_user'
Leave it blank to prevent
Filters sensetive params(e.g. passwords, tokens, credit cards)
config.scrub_fields << 'password'
config.scrub_headers << 'access_token'
passwd password password_confirmation secret confirm_password password_confirmation secret_token api_key access_token session_id
Authorization
def index
no_method_error
rescue StandardError => e
Bugno::Handler.call(exception: e)
end
The gem is available as open source under the terms of the MIT License.