cadonna commented on a change in pull request #9508: URL: https://github.com/apache/kafka/pull/9508#discussion_r532438482
########## File path: streams/src/main/java/org/apache/kafka/streams/state/internals/MeteredKeyValueStore.java ########## @@ -229,6 +230,15 @@ public V delete(final K key) { } } + @Override + public <PS extends Serializer<P>, P> KeyValueIterator<K, V> prefixScan(final P prefix, final PS prefixKeySerializer) { + + return new MeteredKeyValueIterator( + wrapped().prefixScan(prefix, prefixKeySerializer), + rangeSensor Review comment: I think, to be consistent we should add a new sensor for the prefix scan. We have a sensor for each operation on a key-value store. The only exception is `reverseRange()`, which is a variant of range and does not necessarily qualify for its own sensor. ---------------------------------------------------------------- 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