Class: Karafka::Instrumentation::Vendors::Appsignal::Base
- Inherits:
-
Object
- Object
- Karafka::Instrumentation::Vendors::Appsignal::Base
- 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
Instance Method Summary collapse
-
#initialize(&block) ⇒ Base
constructor
A new instance of Base.
- #setup(&block) ⇒ Object
Constructor Details
#initialize(&block) ⇒ Base
Returns a new instance of 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
#setup(&block) ⇒ Object
Note:
We define this alias to be consistent with Karafka#setup
23 24 25 |
# File 'lib/karafka/instrumentation/vendors/appsignal/base.rb', line 23 def setup(&block) configure(&block) end |