Skip to content

Instantly share code, notes, and snippets.

@chrboehm
chrboehm / statsd_sets.py
Created Aug 24, 2018
Statsd Sets for use with WoLpH/python-statsd.
View statsd_sets.py
import statsd
class Sets(statsd.Client):
'''Class to implement a statsd sets message
since python-statsd does not have sets.
A modified copy of https://python-statsd.readthedocs.io/en/latest/_modules/statsd/raw.html#Raw
>>> sets = Sets('test.app')
>>> sets.send('name', 12435)
True
You can’t perform that action at this time.