Пример #1
0
 protected override void UpdateMetric(SamplingGauge metric) => metric.Record(42.123d);
Пример #2
0
 public void OnRequest(string route)
 {
     _requests.Increment(route);
     _randomNumber.Record(_rng.NextDouble());
     _randomNumberByType.Record(_randomNumberTypes[_rng.Next(0, _randomNumberTypes.Length)], _rng.NextDouble());
 }