public void record() {
        if (shouldRecord()) {
            recordInternal(1.0d, time.milliseconds(), true);
        }
    }
Record an occurrence, this is just short-hand for {@link #record(double) record(1.0)}
clients/src/main/java/org/apache/kafka/common/metrics/Sensor.java