@Test public void testBoundaryConditions() { noLabels.observe(2.5); assertEquals(0.0, getBucket(1), .001); assertEquals(1.0, getBucket(2.5), .001); noLabels.labels().observe(Double.POSITIVE_INFINITY); assertEquals(0.0, getBucket(1), .001); assertEquals(1.0, getBucket(2.5), .001); assertEquals(1.0, getBucket(5), .001); assertEquals(1.0, getBucket(7.5), .001); assertEquals(1.0, getBucket(10), .001); assertEquals(2.0, getBucket(Double.POSITIVE_INFINITY), .001); }
public void observe(double amt) { noLabelsChild.observe(amt); }
Histogram extends SimpleCollector<Histogram.Child> implements Collector.Describable { public void observe(double amt) { noLabelsChild.observe(amt); } }
Histogram extends SimpleCollector<Histogram.Child> implements Collector.Describable { public void observe(double amt) { noLabelsChild.observe(amt); } Histogram(Builder b); }
Histogram extends SimpleCollector<Histogram.Child> implements Collector.Describable { public void observe(double amt) { noLabelsChild.observe(amt); } Histogram(Builder b); static Builder build(String name, String help); static Builder build(); void observe(double amt); Timer startTimer(); double time(Runnable timeable); E time(Callable<E> timeable); @Override List<MetricFamilySamples> collect(); @Override List<MetricFamilySamples> describe(); }
Histogram extends SimpleCollector<Histogram.Child> implements Collector.Describable { public void observe(double amt) { noLabelsChild.observe(amt); } Histogram(Builder b); static Builder build(String name, String help); static Builder build(); void observe(double amt); Timer startTimer(); double time(Runnable timeable); E time(Callable<E> timeable); @Override List<MetricFamilySamples> collect(); @Override List<MetricFamilySamples> describe();  }