lib/napa/middleware/request_stats.rb in napa-0.3.0 vs lib/napa/middleware/request_stats.rb in napa-0.4.0

- old
+ new

@@ -29,12 +29,10 @@ request = Rack::Request.new(env) path = normalize_path(request.path_info) # Emit stats to StatsD - Napa::Stats.emitter.increment('request_count') Napa::Stats.emitter.timing('response_time', response_time) - Napa::Stats.emitter.increment("path.#{Napa::Stats.path_to_key(request.request_method, path)}.request_count") Napa::Stats.emitter.timing("path.#{Napa::Stats.path_to_key(request.request_method, path)}.response_time", response_time) # Return the results [status, headers, body] end