Sha256: 7abd547c152ad5677715dee2925f2e72341dda527795ff7f9fc0c0b6d760615c

Contents?: true

Size: 300 Bytes

Versions: 5

Compression:

Stored size: 300 Bytes

Contents

ActiveSupport::Notifications.subscribe %r{.+} do |*args|
  event = ActiveSupport::Notifications::Event.new(*args)
    
  unless event.payload[:exception]
    Harness::Gauge.from_event(event).log if event.payload[:gauge]
    Harness::Counter.from_event(event).log if event.payload[:counter]
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
harness-0.9.1 lib/harness/instrumentation.rb
harness-0.9.0 lib/harness/instrumentation.rb
harness-0.8.1 lib/harness/instrumentation.rb
harness-0.8.0 lib/harness/instrumentation.rb
harness-0.7.0 lib/harness/instrumentation.rb