Exemple #1
0
        public void Observe(double val, long?timestamp)
        {
            _quantileStream.Append(val);
            _count.Add(1);
            _sum.Add(val);

            TrackObservation(timestamp);
        }
Exemple #2
0
            public void Inc(long increment, long?timestamp)
            {
                if (increment < 0)
                {
                    throw new ArgumentOutOfRangeException(nameof(increment), "Counter cannot go down");
                }

                _value.Add(increment);
                TimestampIfRequired(timestamp);
            }
 private void IncInternal(long increment, long?timestamp)
 {
     _value.Add(increment);
     TrackObservation(timestamp);
 }
Exemple #4
0
 public void Inc(long increment, long?timestamp)
 {
     _value.Add(increment);
     TimestampIfRequired(timestamp);
 }