jooby-metrics/src/main/java/org/jooby/metrics/Metrics.java
/**
   * Append a metric to the {@link MetricRegistry}. The metric will be resolved by Guice. This call
   * is identical to {@link MetricRegistry#register(String, Metric)}.
   *
   * @param name Name of the metric.
   * @param metric A metric object.
   * @param <M> Metric type.
   * @return This metrics module.
   */
Append a metric to the  MetricRegistry. The metric will be resolved by Guice. This call
is identical to  MetricRegistry#register(String, Metric).

@param name Name of the metric.
@param metric A metric object.
@param  Metric type.
@return This metrics module.
Append a metric to the MetricRegistry . The metric will be resolved by Guice . This call is identical to MetricRegistry#register ( String Metric ) . @param name Name of the metric . @param metric A metric object . @param Metric type . @return This metrics module .
public <M extends Metric> Metrics metric(final String name, final Class<M> metric) {
    bindings.add((binder, routes, conf) -> {
      MapBinder.newMapBinder(binder, String.class, Metric.class).addBinding(name)
          .to(metric);
    });
    return this;
  }
public < M extends Metric > Metrics metric ( final String name , final Class < M > metric ) { bindings . add ( ( binder , routes , conf ) -> { MapBinder . newMapBinder ( binder , String . class , Metric . class ) . addBinding ( name ) . to ( metric ) ; } ) ; return this ; }
Append a metric to the {@link MetricRegistry}.
Append a metric to the { @link MetricRegistry } .