Airbrake and Errbit notifier for crystal
Add this to your application's shard.yml
:
dependencies:
airbrake:
github: klacointe/airbrake.cr
require "airbrake"
Airbrake.configure do |config|
config.project_id = "1234"
config.project_key = "123456789"
# Optional, use airbrake endpoint by default
config.endpoint = "http://host.tld"
# Optional, use ["development", "test"] by default
config.development_environments = ["development", "test"]
end
begin
MyRunner.do_hard_work!
rescue ex
Airbrake.notify(ex)
end
Airbrake.handle do
MyRunner.do_hard_work!
end
TODO: Write development instructions here
- Fork it ( https://github.com/klacointe/airbrake.cr/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
- klacointe klacointe - creator, maintainer