예제 #1
0
        public void HistogramManager_Observe()
        {
            // Arrange
            var sut    = CreateSUT();
            var metric = RegistrateHistogram();

            // Act
            sut.Observe(metric, 5.0);

            // Assert
            Assert.Equal(1, _collection.GetHistogram(metric).Metric.Count);
        }
예제 #2
0
 public Histogram this[string name] {
     get { return(_metrics.GetHistogram(name)?.Metric); }
 }