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