MeterFactory { public static Histogram.Builder histogram(String name) { return new Histogram.Builder(name); }  static Counter.Builder counter(String name); static Gauge.Builder gauge(String name, Supplier<Double> supplier); static Histogram.Builder histogram(String name);  }
@Test public void testHistogram() { final Histogram histogram = MeterFactory.histogram("test_histogram") .tag("testA", "testB") .steps(Arrays.asList(0d, 10d, 20d, 30d)) .build(); histogram.addValue(3); histogram.addValue(10); testHistogram(histogram, "test_histogram", new String[] {"testA", "testB"}, 0d, 1d, 10d, 1d, 20d, 0d, 30d, 0d); }