Sha256: 9c46c364b07c0d12716da2bfb72f3abfc664026c14b2f80db94b82a114b9f388

Contents?: true

Size: 535 Bytes

Versions: 1

Compression:

Stored size: 535 Bytes

Contents

# Note: You should never need to require this file directly if you are using
# ActiveSupport::Notifications. Instead, you should require the metriks file
# that lives in the same directory as this file. The benefit is that it
# subscribes to the correct events and does everything for your.
require 'toy/instrumentation/subscriber'
require 'metriks'

module Toy
  module Instrumentation
    class MetriksSubscriber < Subscriber
      def update_timer(metric)
        Metriks.timer(metric).update(@duration)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
toystore-0.13.2 lib/toy/instrumentation/metriks_subscriber.rb