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



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

#setupObject

Note:

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



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

def setup(&)
  configure(&)
end