vthiery / cpp-statsd-client

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

Support for statsd tags #11

Closed sumedhsakdeo closed 3 years ago

sumedhsakdeo commented 5 years ago

We were wondering if tags are supported by this client library and how they should be used. We are looking something similar to python statsd client metrics tagging feature

    import statsd
    c = statsd.StatsClient('localhost', 8125, prefix='foo')
    c.incr('bar', tags = {"key1": "value1", "key2":"value2"})

As discussed here https://stackoverflow.com/questions/49852654/sending-statsd-metrics-with-tags-from-python-client

vthiery commented 5 years ago

Hi,

Tags are not yet supported by this client. I suppose we could support tags in the same way this Go client does, maybe using templates.

Unfortunately, I won't have the time to work on this right now, but PRs are very welcome.

vthiery commented 3 years ago

@kevinkreiser I reopened this issue since tags support is also a requirement for your use-case