Sha256: 34e75d12b6fb5c4f6b255080e5ca70c6b1775a7c44e4e259fe93a78cf1662dff

Contents?: true

Size: 251 Bytes

Versions: 8

Compression:

Stored size: 251 Bytes

Contents

ActiveSupport::Notifications.subscribe %r{.+} do |*args|
  event = ActiveSupport::Notifications::Event.new(*args)

  Harness::Gauge.from_event(event).log if event.payload[:gauge]
  Harness::Counter.from_event(event).log if event.payload[:counter]
end

Version data entries

8 entries across 8 versions & 1 rubygems

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