Sha256: b626039e633532e0d702011d2c29aeb74cb5cbc5351b9614d7171c0939df1a60
Contents?: true
Size: 577 Bytes
Versions: 2
Compression:
Stored size: 577 Bytes
Contents
# frozen_string_literal: true class Circuitbox module Notifier class ActiveSupport def notify(circuit_name, event) ::ActiveSupport::Notifications.instrument("#{event}.circuitbox", circuit: circuit_name) end def notify_warning(circuit_name, message) ::ActiveSupport::Notifications.instrument('warning.circuitbox', circuit: circuit_name, message: message) end def notify_run(circuit_name, &block) ::ActiveSupport::Notifications.instrument('run.circuitbox', circuit: circuit_name, &block) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
circuitbox-2.0.0 | lib/circuitbox/notifier/active_support.rb |
circuitbox-2.0.0.pre5 | lib/circuitbox/notifier/active_support.rb |