Module: Strumbar::Instrumentation

Defined in:
lib/strumbar/instrumentation.rb,
lib/strumbar/instrumentation/redis.rb,
lib/strumbar/instrumentation/mongoid.rb,
lib/strumbar/instrumentation/active_record.rb,
lib/strumbar/instrumentation/action_controller.rb,
lib/strumbar/instrumentation/mongoid/runtime_tracker.rb,
lib/strumbar/instrumentation/mongoid/controller_runtime.rb

Defined Under Namespace

Modules: ActionController, ActiveRecord, Mongoid, Redis

Class Method Summary collapse

Class Method Details

.loadObject



8
9
10
11
12
13
14
15
16
17
# File 'lib/strumbar/instrumentation.rb', line 8

def self.load
  Strumbar.instruments.each do |instrument_info|
    instrument  = instrument_info[0]
    options     = instrument_info[1]

    options[:rate] ||= Strumbar.default_rate

    instrument.load options
  end
end