From 4d518de467e4b171632a051588fea2771f9e9668 Mon Sep 17 00:00:00 2001 From: Amit Saha Date: Wed, 4 Sep 2019 03:02:19 +1000 Subject: [PATCH] Update use_ms note for dogstatsd client Signed-off-by: Amit Saha --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index fb094dc..d29f868 100644 --- a/README.md +++ b/README.md @@ -235,7 +235,12 @@ mappings: Note that timers will be accepted with the `ms`, `h`, and `d` statsd types. The first two are timers and histograms and the `d` type is for DataDog's "distribution" type. The distribution type is treated identically to timers and histograms. -The DogStatsD client by default emits timer metrics in seconds, set [use_ms](https://datadogpy.readthedocs.io/en/latest/index.html?highlight=use_ms) to `True` to fix this. +### DogStatsD Client Behavior + +#### `timed()` decorator + +If you are using the DogStatsD client's [timed](https://datadogpy.readthedocs.io/en/latest/#datadog.threadstats.base.ThreadStats.timed) decorator, +it emits the metric in seconds, set [use_ms](https://datadogpy.readthedocs.io/en/latest/index.html?highlight=use_ms) to `True` to fix this. ### Regular expression matching