SensorBuilder withValue(MetricNameTemplate name) {
        if (!preexisting)
            sensor.add(metrics.metricInstance(name, tags), new Value());

        return this;
    }
{@code SensorBuilder} takes a bit of the boilerplate out of creating {@link Sensor sensors} for recording
{@link Metric metrics}.
clients/src/main/java/org/apache/kafka/clients/consumer/internals/SensorBuilder.java