Skip to content

klacointe/airbrake.cr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

airbrake

Airbrake and Errbit notifier for crystal

Installation

Add this to your application's shard.yml:

dependencies:
  airbrake:
    github: klacointe/airbrake.cr

Usage

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

Manual notifications

begin
  MyRunner.do_hard_work!
rescue ex
  Airbrake.notify(ex)
end

Automatic notifications

Airbrake.handle do
  MyRunner.do_hard_work!
end

Development

TODO: Write development instructions here

Contributing

  1. Fork it ( https://github.com/klacointe/airbrake.cr/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

About

Airbrake (and Errbit) notifier

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published