Reporting errors
Honeybadger reports uncaught errors automatically. In all other cases, use
Honeybadger.notify/1,2 to send errors to Honeybadger.
Use the Honeybadger.notify/2 function to send exception information to the
Exceptions API. The first parameter is the
exception and the second parameter is the context/metadata/fingerprint.
try do File.read! "this_file_really_should_exist_dang_it.txt"rescue exception -> Honeybadger.notify(exception, metadata: %{}, stacktrace: __STACKTRACE__, fingerprint: "")endThere is also a Honeybadger.notify/1 which doesn’t require the second
parameter.
Honeybadger.notify("Send this to Honeybadger")