Sha256: dc77c942f7207256b7d6d071330a663070e64a81d2f8f4ab675f6029687b1897
Contents?: true
Size: 668 Bytes
Versions: 8
Compression:
Stored size: 668 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 'cassanity/instrumentation/subscriber' require 'statsd' module Cassanity module Instrumentation class StatsdSubscriber < Subscriber class << self attr_accessor :client end def update_timer(metric) if self.class.client self.class.client.timing metric, (@duration * 1_000).round end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems