Skip to content
Chef handler for sending exceptions to Airbrake
Find file
Latest commit 4a24c6e Jan 27, 2015 @morgoth fixed running tests
Failed to load latest commit information.
.gitignore prepare for gem release Mar 15, 2011
.travis.yml add changelog for 0.5.0 Jan 27, 2015 add changelog for 0.5.0 Jan 27, 2015
Gemfile fixed running tests Jan 27, 2015
LICENSE Adding license Jul 6, 2010 add changelog for 0.5.0 Jan 27, 2015
airbrake_handler.gemspec updated gem structure Jan 27, 2015

Airbrake handler for Chef

Report Chef exceptions to Airbrake

Works fine with chef versions above 0.9.x


gem install airbrake_handler

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

require "airbrake_handler"
exception_handlers << => "your-airbrake-api-key")

You can pass more options to AirbrakeHander initializer, i.e: => "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:

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


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

Airbrake Handler Cookbook

Continuous Integration

Build Status



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

Something went wrong with that request. Please try again.