Example #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.Gauge, noLabelInfo.Type);

            Assert.Equal("labeled", labeledInfo.Name);
            Assert.Equal("help labeled", labeledInfo.Help);
            Assert.Equal(MetricType.Gauge, labeledInfo.Type);
        }
Example #2
0
 public static IReadOnlyDictionary <LabelValues, double> Values(this IGauge gauge)
 => gauge.Collect().Values;