public MetricsCounter(string name, IMeasureCounterMetrics counterMetrics, List <string> labelNames) : base(labelNames, new List <string>()) { this.counterMetrics = counterMetrics; this.counterOptions = new CounterOptions { Name = name }; }
private DiagnosticSourceAdapter(IMeasureCounterMetrics counter, DiagnosticSourceAdapterOptions options) { _options = options; _metric = counter; var newListenerObserver = new NewListenerObserver(OnNewListener); _newListenerSubscription = DiagnosticListener.AllListeners.Subscribe(newListenerObserver); }
public Counter(IMeasureCounterMetrics counter, CounterOptions counterOptions, MetricTags metricTags) { _counter = counter; _counterOptions = counterOptions; _metricTags = metricTags; }
public DefaultCounterManagerTests(MetricCoreTestFixture fixture) { _fixture = fixture; _manager = _fixture.Managers.Counter; _context = _fixture.Context; }