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); }
public static IReadOnlyDictionary <LabelValues, double> Values(this IGauge gauge) => gauge.Collect().Values;