Module: Roqua::Probes::BaseProbe

Extended by:
ActiveSupport::Concern
Included in:
DelayedJobProbe, MonitoringProbe, SchedulingProbe
Defined in:
lib/roqua/probes/base_probe.rb

Instance Method Summary collapse

Instance Method Details

#callObject

do not override me, implement probes by implementing the #run method



18
19
20
21
22
23
24
# File 'lib/roqua/probes/base_probe.rb', line 18

def call
  run
  Appsignal.increment_counter("probe.call.completed", 1, probe_name: self.class.name.demodulize.underscore)
rescue => e
  Appsignal.send_error(e) { _1.set_namespace(Appsignal::Transaction::BACKGROUND_JOB) }
  raise
end