Class: Karafka::Instrumentation::Vendors::Appsignal::Base

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Includes:
Core::Configurable
Defined in:
lib/karafka/instrumentation/vendors/appsignal/base.rb

Overview

Base for all the instrumentation listeners

Direct Known Subclasses

ErrorsListener, MetricsListener

Instance Method Summary collapse

Constructor Details

#initialize(&block) ⇒ Base

Returns a new instance of Base.

Parameters:

  • block (Proc)

    configuration block



16
17
18
19
# File 'lib/karafka/instrumentation/vendors/appsignal/base.rb', line 16

def initialize(&block)
  configure
  setup(&block) if block
end

Instance Method Details

#setup(&block) ⇒ Object

Note:

We define this alias to be consistent with ‘Karafka#setup`

Parameters:

  • block (Proc)

    configuration block



23
24
25
# File 'lib/karafka/instrumentation/vendors/appsignal/base.rb', line 23

def setup(&block)
  configure(&block)
end