class AppPerfRpm::Instrumentation
Public Class Methods
load()
click to toggle source
# File lib/app_perf_rpm/instrumentation.rb, line 6 def load pattern = File.join(File.dirname(__FILE__), 'instruments', '**', '*.rb') Dir.glob(pattern) do |f| begin require f rescue => e AppPerfRpm.logger.error "Error loading instrumentation file '#{f}' : #{e}" AppPerfRpm.logger.error "#{e.backtrace[0..10]}" end end if defined? Rails::Railtie require "app_perf_rpm/railtie" end end