/** * Creates a new {@link Counter} and registers it under the given metric name. * * @param metricName the name of the metric * @return a new {@link Counter} */ public Counter newCounter(MetricName metricName) { return getOrAdd(metricName, new Counter()); }