Sha256: 6adbdcad38668e676afdfc2f7f235e92eeefcb12a230588b28494ce7e8f052c9

Contents?: true

Size: 336 Bytes

Versions: 21

Compression:

Stored size: 336 Bytes

Contents

events = %w(write_fragment read_fragment expire_fragment write_page expire_page process_action send_file)

events.each do |name|
  ActiveSupport::Notifications.subscribe "#{name}.action_controller" do |*args|
    event = ActiveSupport::Notifications::Event.new(*args)
    gauge = Harness::Gauge.from_event event
    gauge.log
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
harness-0.9.1 lib/harness/integration/action_controller.rb
harness-0.9.0 lib/harness/integration/action_controller.rb
harness-0.8.1 lib/harness/integration/action_controller.rb
harness-0.8.0 lib/harness/integration/action_controller.rb
harness-0.7.0 lib/harness/integration/action_controller.rb
harness-0.6.0 lib/harness/integration/action_controller.rb
harness-0.5.0 lib/harness/integration/action_controller.rb
harness-0.4.0 lib/harness/integration/action_controller.rb
harness-0.3.0 lib/harness/integration/action_controller.rb
harness-0.2.16 lib/harness/integration/action_controller.rb
harness-0.2.15 lib/harness/integration/action_controller.rb
harness-0.2.14 lib/harness/integration/action_controller.rb
harness-0.2.13 lib/harness/integration/action_controller.rb
harness-0.2.12 lib/harness/integration/action_controller.rb
harness-0.2.11 lib/harness/integration/action_controller.rb
harness-0.2.10 lib/harness/integration/action_controller.rb
harness-0.2.9 lib/harness/integration/action_controller.rb
harness-0.2.8 lib/harness/integration/action_controller.rb
harness-0.2.7 lib/harness/integration/action_controller.rb
harness-0.2.6 lib/harness/integration/action_controller.rb