Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

21 lines (18 sloc) 0.622 kb
# 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 'flipper/instrumentation/subscriber'
require 'metriks'
module Flipper
module Instrumentation
class MetriksSubscriber < Subscriber
def update_timer(metric)
Metriks.timer(metric).update(@duration)
end
def update_counter(metric)
Metriks.meter(metric).mark
end
end
end
end
Jump to Line
Something went wrong with that request. Please try again.