lib/semantic_logger/metrics/statsd.rb in semantic_logger-3.1.0 vs lib/semantic_logger/metrics/statsd.rb in semantic_logger-3.2.0
- old
+ new
@@ -30,16 +30,16 @@
end
def call(log)
metric = log.metric
if duration = log.duration
- $statsd.timing(metric, duration)
+ @statsd.timing(metric, duration)
else
amount = (log.metric_amount || 1).round
if amount < 0
- amount.times { $statsd.decrement(metric) }
+ amount.times { @statsd.decrement(metric) }
else
- amount.times { $statsd.increment(metric) }
+ amount.times { @statsd.increment(metric) }
end
end
end
end