def setUp(self): os.environ["STATS_ENABLED"] = "1" os.environ["STATS_URL"] = "stderr://" self._tags = stats.Tags({"client": "env_stderr"})
def setUp(self): self._url = "stdout://" self._client = stats.Client(self._url).with_tags({"tag1": "value1"}) self._client = self._client.with_tags({"tag2": "value2"}) self._tags = stats.Tags({"client": "with_tags_stdout"})
def test_tags(self): tags = stats.Tags({"tag1": "val1", "tag2": "val2", "tag3": "val3"}) assert str(tags) == "tag1=val1,tag2=val2,tag3=val3"
def setUp(self): self._client = stats.NoneClient() self._tags = stats.Tags({"client": "stderr"})
def setUp(self): self._url = "stderr://" self._client = stats.Client(self._url) self._tags = stats.Tags({"client": "stderr"})
def setUp(self): self._filename = "./stats.output" self._url = "file://" + self._filename self._client = stats.Client(self._url) self._tags = stats.Tags({"client": "file"})
def setUp(self): self._url = "udp://localhost:8125" self._client = stats.Client(self._url) self._tags = stats.Tags({"client": "udp"})