Skip to content
Browse files

Add support for honeybadger exception tracking.

  • Loading branch information...
1 parent b757838 commit 32548228a286e089a56a9cbfee21cf26a3b613a6 @mheffner mheffner committed Apr 1, 2013
Showing with 15 additions and 0 deletions.
  1. +2 −0 Gemfile
  2. +3 −0 Gemfile.lock
  3. +10 −0 config.ru
View
2 Gemfile
@@ -28,6 +28,8 @@ gem 'rake', '~>0.9.2.2'
group :app do
gem 'airbrake', '~> 3.0.9', :require => false
+ gem 'honeybadger', '~> 1.6.1', :require => false
+
# New Relic
# gem 'newrelic_rpm', '~> 3.3.0'
View
3 Gemfile.lock
@@ -18,6 +18,8 @@ GEM
hashie (1.2.0)
hipchat-api (1.0.4)
httparty
+ honeybadger (1.6.1)
+ json
http_parser.rb (0.5.3)
httparty (0.9.0)
multi_json (~> 1.0)
@@ -89,6 +91,7 @@ DEPENDENCIES
airbrake (~> 3.0.9)
faraday (~> 0.8.4)
hipchat-api (~> 1.0.4)
+ honeybadger (~> 1.6.1)
jeweler (~> 1.6.4)
mail (~> 2.2)
rake (~> 0.9.2.2)
View
10 config.ru
@@ -26,6 +26,16 @@ if ENV["ERRBIT_API_KEY"].to_s.length > 0
end
use Airbrake::Rack
+elsif ENV["HONEYBADGER_API_KEY"].to_s.length > 0
+ require "honeybadger"
+
+ # Configure the API key
+ Honeybadger.configure do |config|
+ config.api_key = ENV["HONEYBADGER_API_KEY"]
+ end
+
+ # And use Honeybadger's rack middleware
+ use Honeybadger::Rack
end
$:.unshift File.join(File.dirname(__FILE__), 'lib')

0 comments on commit 3254822

Please sign in to comment.
Something went wrong with that request. Please try again.