Example #1
0
 /**
  * Registers a new {@link Metric} with this registry.
  *
  * @param metric the metric that was added
  * @param metricName the name of the metric
  * @param group the group that contains the metric
  */
 public void register(Metric metric, String metricName, AbstractMetricGroup group) {
   try {
     if (reporter != null) {
       reporter.notifyOfAddedMetric(metric, metricName, group);
     }
   } catch (Exception e) {
     LOG.error("Error while registering metric.", e);
   }
 }