Skip to content

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.