private static void CollectTestMetrics(IMetricsComposer metrics) { metrics.IncrementCounter("NumOfUploadedImages", 1000); var timer = metrics.StartTimer("Latency"); timer.Dispose(); metrics.Record("ImageSize", 100.0M, Unit.KiloByte); metrics.Record("ImageSize", 200.0M, Unit.KiloByte); }
public TimerMetric(IMetricsComposer metricsComposer, string timerName) { _composer = metricsComposer; _timerName = timerName; }