コード例 #1
0
        public void It_should_include_custom_tags_before_sending_metrics()
        {
            var client = new VeStatsDClient(_statsd.Object, "foo", new Dictionary <string, string> {
                { "foo", "bar" }
            });

            client.LogCount("foo.bar");
            _statsd.Verify(x => x.LogCount(It.IsRegex("foo\\.bar\\,host\\=([A-Za-z0-9-]+)\\,datacenter\\=foo\\,foo\\=bar"), It.IsAny <int>()));
        }
コード例 #2
0
 public void It_should_include_system_tags_before_sending_metrics()
 {
     _client.LogCount("foo.bar");
     _statsd.Verify(x => x.LogCount(It.IsRegex("foo\\.bar\\,host\\=([A-Za-z0-9-]+)\\,datacenter\\=foo"), It.IsAny <int>()));
 }