module

Honeybadger

The Honeybadger::AuthenticHandler is meant to integrate with the Lucky web framework.

It will attempt to fetch a user's ID from the current session, and include it in the error context if available.

Constants

VERSION = "0.3.0"

Class methods

api_key

Alias of Configuration.api_key.

Source
clear
Source
configuration

The Honeybadger Configuration singleton instance.

Source
configure(api_key : String, *, environment : String | Nil = nil) : Nil

Set the API key to be used for calls to the honeybadger API. Call configure during an application boot sequence and populate the api key:

  honeybadger_api_key = ENV["HONEYBADGER_API_KEY"]? || "00000000"
  Honeybadger.configure(api_key: honeybadger_api_key)
Source
configure

Configure Honeybadger with a block.

Honeybadger.configure do |settings|
  settings.api_key = "00000"
  settings.project_root = "/path/to/project"
end
Source
context
Source
endpoint

Alias of Configuration.endpoint.

Source
event
Source
hostname

Alias of Configuration.hostname.

Source
notify(exception : Exception | String, context : Hash | Nil = nil, *, synchronous : Bool = false, error_class : String | Nil = nil) : Nil

Send notifications to the Honeybadger API

Source
project_root

Alias of Configuration.project_root.

Source
report_data?

Alias of Configuration.report_data

Source
revision

Alias of Configuration.revision.

Source
send(event : Event)
Source

Nested types