lib/barnes/instruments/puma_instrument.rb in barnes-0.0.8 vs lib/barnes/instruments/puma_instrument.rb in barnes-0.0.9
- old
+ new
@@ -24,10 +24,9 @@
MultiJson.load(::Puma.stats || "{}")
# Puma loader has not been initialized yet
rescue NoMethodError => e
raise e unless e.message =~ /nil/
- raise e unless e.message =~ /stats/
return {}
end
def instrument!(state, counters, gauges)
gauges['using.puma'] = 1