module Sqreen::Ecosystem::ModuleApi::Instrumentation
Public Class Methods
included(mod)
click to toggle source
# File lib/sqreen/ecosystem/module_api/instrumentation.rb, line 12 def self.included(mod) mod.send :include, ModuleApi unless mod.ancestors.include?(ModuleApi) end
Private Instance Methods
instrument(method, advice)
click to toggle source
Just forwards the call to the instrumentation service @param [String] method @param [Hash{Symbol=>Proc}] advice keys are one of: :before, :after,
:raised,
# File lib/sqreen/ecosystem/module_api/instrumentation.rb, line 22 def instrument(method, advice) DispatchTable.instrument.call(self.class.module_name, method, advice) end