Class: Honeybadger::Backend::Base

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Includes:
Logging::Helper
Defined in:
lib/honeybadger/backend/base.rb

Direct Known Subclasses

Null, Server

Instance Method Summary collapse

Constructor Details

#initialize(config) ⇒ Base

Returns a new instance of Base.



42
43
44
# File 'lib/honeybadger/backend/base.rb', line 42

def initialize(config)
  @config = config
end

Instance Method Details

#notify(feature, payload) ⇒ Object

Internal: Process payload for feature.

feature - A Symbol feature name (corresponds to HTTP endpoint). Current

options are: :notices, :metrics, :traces.

payload - Any Object responding to #to_json.

Examples:

backend.notify(:notices, Notice.new(...))

Raises NotImplementedError

Raises:

  • (NotImplementedError)


57
58
59
# File 'lib/honeybadger/backend/base.rb', line 57

def notify(feature, payload)
  raise NotImplementedError, 'must define #notify on subclass.'
end