public void CollectMetrics() { for (var x = 0; x < Counters.Length; x++) { if (TryGetCount(Counters[x], out var count)) { TrySend(_metricBuilder.TryBuildAgentApiMetric(MetricNames[x], count)); } } }
public void CollectMetrics() { for (var x = 0; x < Counters.Length; x++) { if (TryGetCount(Counters[x], out var count)) { TrySend(_metricBuilder.TryBuildAgentApiMetric(MetricNames[x], count)); } } }