code: public <T extends ContextAwareMetric> T register(T metric) throws IllegalArgumentException {
      return register(metric.getName(), metric);
    }
docs: Register a {@link org.apache.gobblin.metrics.ContextAwareMetric} under its own name.