Sha256: f33e1b7521058dc58eb5f0453f8134f5e9fa6afe5ccb714f7ff45ca9ac5b0efb

Contents?: true

Size: 329 Bytes

Versions: 8

Compression:

Stored size: 329 Bytes

Contents

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

regex = %r{#{events.join("|")}.action_controller}

ActiveSupport::Notifications.subscribe regex do |*args|
  event = ActiveSupport::Notifications::Event.new(*args)
  gauge = Harness::Gauge.from_event event
  gauge.log
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
harness-0.2.4 lib/harness/integration/action_controller.rb
harness-0.2.3 lib/harness/integration/action_controller.rb
harness-0.2.2 lib/harness/integration/action_controller.rb
harness-0.2.1 lib/harness/integration/action_controller.rb
harness-0.2.0 lib/harness/integration/action_controller.rb
harness-0.1.2 lib/harness/integration/action_controller.rb
harness-0.1.1 lib/harness/integration/action_controller.rb
harness-0.1.0 lib/harness/integration/action_controller.rb