code: def statsd_metric(name, count, elapsed):
      
      with statsd.pipeline() as pipe:
          pipe.incr(name, count)
          pipe.timing(name, int(round(1000 * elapsed)))
docs: Metric that records to statsd & graphite