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.2.5 lib/harness/integration/active_support.rb