module Honeybadger

Honeybadger’s public API is made up of two parts: the {Honeybadger} singleton module, and the {Agent} class. The singleton module delegates its methods to a global agent instance, {Agent#instance}; this allows methods to be accessed directly, for example when calling Honeybadger.notify:

begin
  raise 'testing an error report'
rescue => err
  Honeybadger.notify(err)
end

Custom agents may also be created by users who want to report to multiple Honeybadger projects in the same app (or have fine-grained control over configuration), however most users will use the global agent.

@see Honeybadger::Agent