public static void SetGauge(GaugeOptions options, long amount) { Preconditions.CheckNotNull(options); Preconditions.CheckNotNull(amount); MetricsCollector.ForEach(mroot => { mroot.Measure.Gauge.SetValue(options, amount); }); }
public static void CountDecrement(CounterOptions options, long amount) { Preconditions.CheckNotNull(options); Preconditions.CheckNotNull(amount); MetricsCollector.ForEach(mroot => { mroot.Measure.Counter.Decrement(options, amount); }); }