lib/sapience/appender/datadog.rb in sapience-0.1.4 vs lib/sapience/appender/datadog.rb in sapience-0.1.5

- old
+ new

@@ -82,15 +82,19 @@ def histogram(metric, amount) provider.histogram(metric, amount) end - def gauge(metric, amount, hash) + def gauge(metric, amount, hash = {}) provider.gauge(metric, amount, hash) end - def count(metric, amount, hash) + def count(metric, amount, hash = {}) provider.count(metric, amount, hash) + end + + def time(metric, &block) + provider.time(metric, &block) end def batch yield provider end