segmentio / stats

Go package for abstracting stats collection
https://godoc.org/github.com/segmentio/stats
MIT License
208 stars 32 forks source link

Support Datadog distribution metric type #132

Closed bhavanki closed 3 years ago

bhavanki commented 3 years ago

The Datadog client now has the ability to send histogram metrics as the Datadog-specific distribution metric type. The Datadog client configuration has a new DistributionPrefixes item which specifies the prefixes of metric names that, when reported as histograms to the stats library, are to be sent as distributions instead. For example, when the prefix list is set to { "dist_" }, then any histogram metric whose name begins with "dist_" is sent as a distribution; all other histograms are sent as ordinary histograms, as before.

The default configuration sends no histograms as distributions.

bhavanki commented 3 years ago

This should address https://github.com/segmentio/stats/issues/120 .