Sha256: 76694ddd3143191bd7306d81459619ab98bec7249f2da643f7ad406cdafe8f33

Contents?: true

Size: 307 Bytes

Versions: 21

Compression:

Stored size: 307 Bytes

Contents

events = %w(cache_read cache_generate cache_fetch_hit cache_write cache_delete)

events.each do |name|
  ActiveSupport::Notifications.subscribe "#{name}.active_support" 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/active_support.rb
harness-0.9.0 lib/harness/integration/active_support.rb
harness-0.8.1 lib/harness/integration/active_support.rb
harness-0.8.0 lib/harness/integration/active_support.rb
harness-0.7.0 lib/harness/integration/active_support.rb
harness-0.6.0 lib/harness/integration/active_support.rb
harness-0.5.0 lib/harness/integration/active_support.rb
harness-0.4.0 lib/harness/integration/active_support.rb
harness-0.3.0 lib/harness/integration/active_support.rb
harness-0.2.16 lib/harness/integration/active_support.rb
harness-0.2.15 lib/harness/integration/active_support.rb
harness-0.2.14 lib/harness/integration/active_support.rb
harness-0.2.13 lib/harness/integration/active_support.rb
harness-0.2.12 lib/harness/integration/active_support.rb
harness-0.2.11 lib/harness/integration/active_support.rb
harness-0.2.10 lib/harness/integration/active_support.rb
harness-0.2.9 lib/harness/integration/active_support.rb
harness-0.2.8 lib/harness/integration/active_support.rb
harness-0.2.7 lib/harness/integration/active_support.rb
harness-0.2.6 lib/harness/integration/active_support.rb