Exemplo n.º 1
0
        public void Visit()
        {
            var noLabelInfo = noLabel.Collect();
            var labeledInfo = labeled.Collect();

            Assert.Equal("noLabel", noLabelInfo.Name);
            Assert.Equal("help noLabels", noLabelInfo.Help);
            Assert.Equal(MetricType.Counter, noLabelInfo.Type);

            Assert.Equal("labeled", labeledInfo.Name);
            Assert.Equal("help labeled", labeledInfo.Help);
            Assert.Equal(MetricType.Counter, labeledInfo.Type);
        }
Exemplo n.º 2
0
 public static IReadOnlyDictionary <LabelValues, double> Values(this ICounter counter)
 => counter.Collect().Values;