4 5 6
# File 'lib/sneakers/metrics/logging_metrics.rb', line 4 def increment(metric) Sneakers.logger.info("INC: #{metric}") end
8 9 10 11 12
# File 'lib/sneakers/metrics/logging_metrics.rb', line 8 def timing(metric, &block) start = Time.now block.call Sneakers.logger.info("TIME: #{metric} #{Time.now - start}") end