public void Inc(double increment, long?timestamp) { if (ThreadSafeDouble.IsNaN(increment)) { return; } _value.Add(increment); TimestampIfRequired(timestamp); }
public void Observe(double val, long?timestamp) { _quantileStream.Append(val); _count.Add(1); _sum.Add(val); TrackObservation(timestamp); }
public void Inc(double increment) { if (increment < 0.0D) { throw new ArgumentOutOfRangeException(nameof(increment), "Counter cannot go down"); } _value.Add(increment); }
public void Inc(double increment) { if (increment < 0.0D) { throw new InvalidOperationException("Counter cannot go down"); } _value.Add(increment); }
public void Observe(double val, long?timestamp) { if (ThreadSafeDouble.IsNaN(val)) { return; } _bucketsStore.Observe(val); _sum.Add(val); TrackObservation(timestamp); }
public void Inc(double increment, long?timestamp) { if (double.IsNaN(increment)) { return; } if (increment < 0.0D) { throw new ArgumentOutOfRangeException(nameof(increment), "Counter cannot go down"); } _value.Add(increment); TimestampIfRequired(timestamp); }
public void Observe(double val) { if (double.IsNaN(val)) { return; } for (var i = 0; i < _upperBounds.Length; i++) { if (val <= _upperBounds[i]) { _bucketCounts[i].Add(1); break; } } _sum.Add(val); }
public void Observe(double val, long?timestamp) { if (ThreadSafeDouble.IsNaN(val)) { return; } for (int i = 0; i < Configuration.Buckets.Count; i++) { if (val <= Configuration.Buckets[i]) { _bucketCounts[i].Add(1); break; } } _sum.Add(val); TimestampIfRequired(timestamp); }
private void IncInternal(double increment, long?timestamp) { _value.Add(increment); TrackObservation(timestamp); }
public void Inc(double increment) { _value.Add(increment); }