Пример #1
0
        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);
        }
Пример #2
0
 public TimerMetric(IMetricsComposer metricsComposer, string timerName)
 {
     _composer  = metricsComposer;
     _timerName = timerName;
 }