Skip to content

Difference when using a timing metric to count events  #983

@sonoman

Description

@sonoman

In a project we're using Timing struct. to record latency for a method, with a sample rate of 1.
We send the metrics to Datadog. we also write a log line each time the method executes.
After a while, we graph the number of requests using duration.count for the metric, and we find a difference between datadog and the number of logs written for a given minute: approximately 9k min on datadog, and 12k min on the log lines count.

If we use a counter, the metric looks just the same in datadog and logs....but we want to use timing because our primary objective is to measure times. But we also. find a hurdle to add both metrics, given that Timing should do the count just right.

My question is. is this a problem of the library ? or statsd agent ? or maybe Datadog itself ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions