Class: Karafka::Instrumentation::Vendors::Appsignal::ErrorsListener
- Defined in:
- lib/karafka/instrumentation/vendors/appsignal/errors_listener.rb
Overview
Listener for reporting errors from both consumers and producers Since we have the same API for WaterDrop and Karafka, we can use one listener with independent instances
Instance Method Summary collapse
-
#on_error_occurred(event) ⇒ Object
Sends error details to Appsignal.
Methods inherited from Base
Constructor Details
This class inherits a constructor from Karafka::Instrumentation::Vendors::Appsignal::Base
Instance Method Details
#on_error_occurred(event) ⇒ Object
Sends error details to Appsignal
23 24 25 |
# File 'lib/karafka/instrumentation/vendors/appsignal/errors_listener.rb', line 23 def on_error_occurred(event) client.report_error(event[:error]) end |