module Vx::Consumer::Instrument
Public Instance Methods
instrument(name, payload) { || ... }
click to toggle source
# File lib/vx/consumer/instrument.rb, line 5 def instrument(name, payload, &block) name = "#{name}.consumer.vx" if Consumer.configuration.debug? $stdout.puts " --> #{name}: #{payload}" end if Consumer.configuration.instrumenter Consumer.configuration.instrumenter.instrument(name, payload, &block) else yield if block_given? end end