Sha256: cc73d68d73804f23ca28ce17e5d439c3f231126b6663e610f4c7bf152f697d01

Contents?: true

Size: 1.5 KB

Versions: 1

Compression:

Stored size: 1.5 KB

Contents

#  Airbrake handler for Chef

Report [Chef](http://www.opscode.com/chef) exceptions to [Airbrake](http://airbrake.io)

Works fine with chef versions above 0.9.x

## Usage

```
gem install airbrake_handler
```

In your chef client file (often placed at /etc/chef/client.rb) put:

```ruby
require "airbrake_handler"
exception_handlers << AirbrakeHandler.new(:api_key => "your-airbrake-api-key")
```

You can pass more options to AirbrakeHander initializer, i.e:

```ruby
AirbrakeHandler.new(:api_key => "your-airbrake-api-key", :framework_env => "production")
```

Toadhopper options:

* :api_key
* :notify_host

If you want to ignore specific exceptions, you can do this like that:

```ruby
airbrake_handler = AirbrakeHandler.new(:api_key => "your-airbrake-api-key", :framework_env => "production")
airbrake_handler.ignore << {:class => "SystemExit"}
airbrake_handler.ignore << {:class => "Errno::ECONNRESET", :message => /Connection reset by peer/}
```

### Automation

If you would like to install `airbrake_handler` by Chef itself, you can use cookbook:

[Airbrake Handler Cookbook](https://github.com/cgriego/chef-airbrake_handler)

## Continuous Integration

[![Build Status](https://travis-ci.org/morgoth/airbrake_handler.svg?branch=master)](https://travis-ci.org/morgoth/airbrake_handler)

## Contributors

* [Anton Mironov](https://github.com/mironov)
* [Benedikt Böhm](https://github.com/hollow)
* [Jeroen Jacobs](https://github.com/jeroenj)

## Copyright

Copyright (c) 2012 Adam Jacob, Wojciech Wnętrzak See LICENSE for details.

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
airbrake_handler-0.5.0 README.md