code: protected void regenerateMetrics() {
      if (isInstrumentationEnabled()) {
        this.recordsInMeter = Optional.of(this.metricContext.meter(MetricNames.ConverterMetrics.RECORDS_IN_METER));
        this.recordsOutMeter = Optional.of(this.metricContext.meter(MetricNames.ConverterMetrics.RECORDS_OUT_METER));
        this.recordsExceptionMeter = Optional.of(
            this.metricContext.meter(MetricNames.ConverterMetrics.RECORDS_FAILED_METER));
        this.converterTimer = Optional.<Timer>of(this.metricContext.timer(MetricNames.ConverterMetrics.CONVERT_TIMER));
      }
    }
docs: Generates metrics for the instrumentation of this class.