jipiboily / kemal-bugsnag

Kemal middleware that traps all exceptions, send them to Bugsnag and re-raise them

Home Page:http://jipiboily.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

kemal-bugsnag

Adds bugsnag.cr plus a middleware for Kemal that will catch all exceptions in Kemal.

Installation

Add this to your application's shard.yml:

dependencies:
  kemal-bugsnag:
    github: jipiboily/kemal-bugsnag

then just add require "kemal-bugsnag" in your app.

Next and final step is to configure bugsnag.cr itself.

You can either set the BUGSNAG_KEY environment variable

or add

require "bugsnag"

Bugsnag.configure do |config|
  config.api_key = "YOUR_API_KEY_HERE"
end

Development

TODO: Write development instructions here

Contributing

  1. Fork it ( https://github.com/jipiboily/kemal-bugsnag/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

Contributors

  • jipiboily Jean-Philippe Boily - creator, maintainer

About

Kemal middleware that traps all exceptions, send them to Bugsnag and re-raise them

http://jipiboily.com/

License:MIT License


Languages

Language:Crystal 100.0%