Multiple Projects

To send errors to another Honeybadger project, configure an additional agent:

OtherBadger = Honeybadger::Agent.new

OtherBadger.configure do |config|
  config.api_key = 'project api key'
end

begin
  # Failing code
rescue => exception
  OtherBadger.notify(exception)
end

Agents do not use the global honeybadger.yml or environment variable configuration and must be configured manually after they are instantiated.