Eye::Sentry
Sentry reporter for eye process monitoring.
Installation
Add this line to your application's Gemfile:
gem 'eye'
gem 'eye-sentry'
And then execute:
$ bundle
Or install it yourself as:
$ gem install eye-sentry
Usage
this is an example configuration file
# Notify example
require 'eye/notify/sentry'
Eye.config do
sentry extra_context: { some_value: 'foo' }
contact :dev, :sentry, 'http://your-dsn@example.com/project-id'
logger '/tmp/eye.log'
end
Eye.application 'test' do
notify :dev, :debug
stdall '/tmp/eye-example.log'
process :some_process do
start_command 'sleep 120'
daemonize true
pid_file '/tmp/sleep.pid'
end
end
NOTE You need to quit eye and load it back after adding require
.
Configuration
-
add
sentry
line toEye.config
section and check following parameters -
extra_context
- hash with any additional data you want to have reported -
add
contact
line toEye.config
and pass your project DSN as the third argument
Contributing
- Fork it ( https://github.com/bombasarkadian/eye-sentry/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