airbrake

Version, currently master branch1 version
  • master branchlatestApr 10, 2021

github.com/klacointe/airbrake.cr

Airbrake (and Errbit) notifier

5 stars
0 dependents
License: MIT

Installation

# Add this to your shard.yml
dependencies:
  airbrake:
    github: klacointe/airbrake.cr
    branch: master

master is a branch, not a release, so this tracks it rather than pinning a version.

Then run:

shards install

shard.yml

Crystal
0.24.1
License
MIT
Author
klacointe

Dependencies

This version declares no dependencies.

README

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