It measures the latency (execution time) of the provided block in milliseconds, and emits this value as a metric. The metric type by default is an ms, but can be overridden. For DogStatsD we default to a distribution metric.
We also use the latency method under the hood when measure or `distribution is called with a block, for backwards compatibility.
It measures the latency (execution time) of the provided block in milliseconds, and emits this value as a metric. The metric type by default is an
ms
, but can be overridden. For DogStatsD we default to a distribution metric.We also use the latency method under the hood when
measure
or `distribution is called with a block, for backwards compatibility.