vthiery / cpp-statsd-client

A header-only StatsD client implemented in C++
MIT License
51 stars 19 forks source link

feat: support custom metric types #44

Closed dsze closed 2 years ago

dsze commented 2 years ago

Other statsd backends (e.g. Datadog, netdata) support metric types beyond those supported by the original Etsy statsd daemon. For example:

Since these are non-standard, add a custom() method, where the metric type is passed in by the caller, assuming that they know the capabilities of the backend they are using.

kevinkreiser commented 2 years ago

@dsze i think when adding this feature it would be nice to add a section to the readme that shows how to use it and why its there. when i first started working on this project i also wondered about adding the non-standard extensions but eventually removed them from my pr. at any rate, this is a good way to allow for full flexibility so it'd be great to document why someone would want this (ie the two examples above)

dsze commented 2 years ago

See https://github.com/vthiery/cpp-statsd-client/pull/45 instead. Had to close this PR because it was created off of master on my fork, making it difficult to update.