Opscode Chef cookbook to install and configure the Airbrake handler.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
attributes
recipes
.gitignore
.ruby-version
Gemfile
README.md
metadata.rb

README.md

Description

Report Chef exceptions to Airbrake using the airbrake_handler gem.

This cookbook uses the chef_gem resource added in Chef 0.10.10. If you are using an earlier version of Chef, then you can install the chef_gem cookbook which backports this functionality.

Attributes

  • node['airbrake_handler']['api_key'] - Your Airbrake API Key, required.
  • node['airbrake_handler']['framework_env'] - What environment to report to Airbrake, defaults to the node.chef_environment.
  • node['airbrake_handler']['version'] - Set the version of the airbrake_handler gem to install.

Any additional airbrake_handler attributes will be passed directly into the AirbrakeHandler class.

Usage

Add recipe[airbrake_handler] to your run list and set the airbrake_handler/api_key attribute.

run_list("recipe[airbrake_handler]")
default_attributes("airbrake_handler" => { "api_key" => "your-airbrake-api-key" })