This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |