# frozen_string_literal: true

require 'statsd'

class Stats
  def initialize
    @statsd = Statsd.new('127.0.0.1', 8125)
  end

  def dyno_id
    @dyno_id ||= ENV['DYNO'] || 'unknown'
  end

  def increment(name)
    @statsd.increment("#{name}")
  end

  def timing(name, ms)
    @statsd.timing(name, ms)
  end

  def time(name, &blk)
    @statsd.time(name, &blk)
  end
end

# frozen_string_literal: true

require 'statsd'

class Stats
  def initialize
    @statsd = Statsd.new('127.0.0.1', 8125)
  end

  def increment(name)
    @statsd.increment("#{name}")
  end

  def timing(name, ms)
    @statsd.timing(name, ms)
  end

  def time(name, &blk)
    @statsd.time(name, &blk)
  end
end

Remove unused DYNO variable This variable was provided by heroku when the project first started.
Remove unused DYNO variable
This variable was provided by heroku when the project first started.
