lib/deimos/metrics/datadog.rb in deimos-ruby-1.23.1.pre.beta5 vs lib/deimos/metrics/datadog.rb in deimos-ruby-1.23.1.pre.beta6

- old
+ new

@@ -12,19 +12,21 @@ raise 'Metrics config must specify host_ip' if config[:host_ip].nil? raise 'Metrics config must specify host_port' if config[:host_port].nil? raise 'Metrics config must specify namespace' if config[:namespace].nil? logger.info("DatadogMetricsProvider configured with: #{config}") + @client = ::Datadog::Statsd.new( config[:host_ip], config[:host_port], tags: config[:tags], namespace: config[:namespace] ) end # :nodoc: def increment(metric_name, options={}) + Rails.logger.info("Incrementing #{metric_name} #{options}") @client.increment(metric_name, options) end # :nodoc: def gauge(metric_name, count, options={})