module Raemon::Instrumentation

Provides a safe interface to instrument Raemon

Public Instance Methods

instrument(name, payload={}, &block) click to toggle source
# File lib/raemon/instrumentation.rb, line 4
def instrument(name, payload={}, &block)
  if Raemon.config.instrumentor.respond_to? :instrument
    full_name = "#{Raemon.config.instrumentor_name}.#{name}"
    Raemon.config.instrumentor.send :instrument, full_name, payload, &block
  end
end