示例#1
0
        public static void SetGauge(GaugeOptions options, long amount)
        {
            Preconditions.CheckNotNull(options);
            Preconditions.CheckNotNull(amount);

            MetricsCollector.ForEach(mroot => { mroot.Measure.Gauge.SetValue(options, amount); });
        }
示例#2
0
        public static void CountDecrement(CounterOptions options, long amount)
        {
            Preconditions.CheckNotNull(options);
            Preconditions.CheckNotNull(amount);

            MetricsCollector.ForEach(mroot => { mroot.Measure.Counter.Decrement(options, amount); });
        }