Sha256: d1f2a918a08bf0772348d4bebcae2dc78b8a860bcb9ca2c23232bf4b3046ea0d

Contents?: true

Size: 296 Bytes

Versions: 16

Compression:

Stored size: 296 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

16 entries across 16 versions & 1 rubygems

Version Path
harness-0.6.0 lib/harness/instrumentation.rb
harness-0.5.0 lib/harness/instrumentation.rb
harness-0.4.0 lib/harness/instrumentation.rb
harness-0.3.0 lib/harness/instrumentation.rb
harness-0.2.16 lib/harness/instrumentation.rb
harness-0.2.15 lib/harness/instrumentation.rb
harness-0.2.14 lib/harness/instrumentation.rb
harness-0.2.13 lib/harness/instrumentation.rb
harness-0.2.12 lib/harness/instrumentation.rb
harness-0.2.11 lib/harness/instrumentation.rb
harness-0.2.10 lib/harness/instrumentation.rb
harness-0.2.9 lib/harness/instrumentation.rb
harness-0.2.8 lib/harness/instrumentation.rb
harness-0.2.7 lib/harness/instrumentation.rb
harness-0.2.6 lib/harness/instrumentation.rb
harness-0.2.5 lib/harness/instrumentation.rb