jooby-metrics/src/main/java/org/jooby/metrics/Metrics.java
/**
   * Append a metric to the {@link MetricRegistry}, this call is identical to
   * {@link MetricRegistry#register(String, Metric)}.
   *
   * @param name Name of the metric.
   * @param metric A metric object
   * @return This metrics module.
   */
Append a metric to the  MetricRegistry, this call is identical to
MetricRegistry#register(String, Metric).

@param name Name of the metric.
@param metric A metric object
@return This metrics module.
Append a metric to the MetricRegistry this call is identical to MetricRegistry#register ( String Metric ) . @param name Name of the metric . @param metric A metric object @return This metrics module .
public Metrics metric(final String name, final Metric metric) {
    bindings.add((binder, routes, conf) -> {
      MapBinder.newMapBinder(binder, String.class, Metric.class).addBinding(name)
          .toInstance(metric);
    });
    return this;
  }
public Metrics metric ( final String name , final Metric metric ) { bindings . add ( ( binder , routes , conf ) -> { MapBinder . newMapBinder ( binder , String . class , Metric . class ) . addBinding ( name ) . toInstance ( metric ) ; } ) ; return this ; }
Append a metric to the {@link MetricRegistry}, this call is identical to
 {@link MetricRegistry#register(String, Metric)}.
Append a metric to the { @link MetricRegistry } this call is identical to { @link MetricRegistry#register ( String Metric ) } .