mjsax commented on a change in pull request #9614: URL: https://github.com/apache/kafka/pull/9614#discussion_r533639922
########## File path: streams/src/main/java/org/apache/kafka/streams/processor/internals/metrics/StreamsMetricsImpl.java ########## @@ -214,6 +215,20 @@ public RocksDBMetricsRecordingTrigger rocksDBMetricsRecordingTrigger() { } } + public final Sensor clientLevelSensor(final String sensorName, + final RecordingLevel recordingLevel, + final Sensor... parents) { + synchronized (clientLevelSensors) { + final String fullSensorName = CLIENT_LEVEL_GROUP + SENSOR_NAME_DELIMITER + sensorName; + final Sensor sensor = metrics.getSensor(fullSensorName); Review comment: I am fine either way, too, but I prefer consistency... So should we rewrite the other method as a side cleanup? ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org