module TraceView::Inst
The Inst
module holds all of the instrumentation extensions for various libraries suchs as Redis
, Dalli
and Resque.
Public Class Methods
load_instrumentation()
click to toggle source
# File lib/traceview/instrumentation.rb, line 9 def self.load_instrumentation # Load the general instrumentation pattern = File.join(File.dirname(__FILE__), 'inst', '*.rb') Dir.glob(pattern) do |f| begin require f rescue => e TraceView.logger.error "[traceview/loading] Error loading instrumentation file '#{f}' : #{e}" TraceView.logger.debug "[traceview/loading] #{e.backtrace.first}" end end end