public void can_increment_counter()
        {
            var metricName = "test_increment_counter";
            var options    = new CounterOptions()
            {
                Name = metricName
            };

            _manager.Increment(options);

            _fixture.Snapshot.GetCounterValue(_context, metricName).Count.Should().Be(1L);
        }
Exemple #2
0
 public void Increment(long increment = 1)
 {
     _counter.Increment(_counterOptions, _metricTags, increment);
 }
 private void OnEvent(string listenerName, string eventName, object payload)
 {
     _metric.Increment(MetricsRegistry.DiagnosticSource, new MetricTags(new string[] { "source", "event" }, new string[] { listenerName, eventName }));
 }