Project

eye-sentry

0.0
No commit activity in last 3 years
No release in over 3 years
Eye to sentry notification
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.7
~> 10.0

Runtime

~> 0.10
 Project Readme

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 to Eye.config section and check following parameters

  • extra_context - hash with any additional data you want to have reported

  • add contact line to Eye.config and pass your project DSN as the third argument

Contributing

  1. Fork it ( https://github.com/bombasarkadian/eye-sentry/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request