class Thrift::Metrics::Middleware::Exception
Public Class Methods
instrument(name, &block)
click to toggle source
# File lib/thrift/metrics.rb 37 def instrument(name, &block) 38 begin 39 r = block.call 40 Metrics.client.increment("#{name}.success") 41 r 42 rescue => e 43 Metrics.client.increment("#{name}.exceptions.#{e.class.name.downcase}") 44 raise e 45 end 46 end