Class: AppPerfRpm::Instrumentation
- Inherits:
-
Object
- Object
- AppPerfRpm::Instrumentation
- Defined in:
- lib/app_perf_rpm/instrumentation.rb
Class Method Summary collapse
Class Method Details
.load ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# 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 |