A notifier plugin for eye to send info about process crashes to BugSnag.
Add this line to your application's Gemfile:
gem 'eye'
gem 'eye-bugsnag'
And then execute:
$ bundle
Or install it yourself as:
$ gem install eye-bugsnag
BugSnag notifier takes the following parameters:
api_key
- requiredrelease_stage
- optional, defaults todevelopment
, but is required to report correctlynotify_release_stages
- optional, defaults to%w(development staging production)
app_type
- optional, defaults toeye
project_root
- optional
Declare inside eye config like this:
require 'eye/notify/bugsnag'
Eye.config do
bugsnag api_key: '123yourbugsnagapikeygoeshere321', release_stage: ENV['RAILS_ENV'], notify_release_stages: %w(staging production)
contact :devs, :bugsnag, 'whatever'
end
Refer to the example configuration file in examples
directory.
- Fork it ( https://github.com/duhast/eye-bugsnag/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request