0.0
No commit activity in last 3 years
No release in over 3 years
faultline exception and error notifier for Rack application
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.14
>= 0
~> 10.0
~> 3.0
~> 0.47.0
~> 1.2.6

Runtime

~> 6.1.0
~> 0.1.3
< 3.0.0, >= 1
 Project Readme

Faultline::Rack Build Status

faultline exception and error notifier for Rack application.

Installation

Add this line to your application's Gemfile:

gem 'faultline-rack'

And then execute:

$ bundle

Or install it yourself as:

$ gem install faultline-rack

Usage

config/application.rb

require 'faultline/rack'

Faultline.configure do |c|
  c.project = 'faultline-rack'
  c.api_key = 'xxxxXXXXXxXxXXxxXXXXXXXxxxxXXXXXX'
  c.endpoint = 'https://xxxxxxxxx.execute-api.ap-northeast-1.amazonaws.com/v0'
  c.notifications = [
    {
      type: 'slack',
      endpoint: 'https://hooks.slack.com/services/XXXXXXXXXX/B2RAD9423/WC2uTs3MyGldZvieAtAA7gQq',
      channel: '#random',
      username: 'faultline-notify',
      notifyInterval: 1,
      threshold: 1,
      timezone: 'Asia/Tokyo'
    },
    {
      type: 'github',
      userToken: 'XXXXXXXxxxxXXXXXXxxxxxXXXXXXXXXX',
      owner: 'k1LoW',
      repo: 'faultline',
      labels: [
        'faultline', 'bug'
      ],
      if_exist: 'reopen-and-comment',
      notifyInterval: 1,
      threshold: 1,
      timezone: 'Asia/Tokyo'
    }
  ]
end

[...]

module MyApp
  class Application < Rails::Application
    config.middleware.use Faultline::Rack::Middleware
  end
end

References

License

MIT © Ken'ichiro Oyama