cadonna commented on a change in pull request #9094: URL: https://github.com/apache/kafka/pull/9094#discussion_r462882926
########## File path: streams/src/main/java/org/apache/kafka/streams/state/internals/metrics/StateStoreMetrics.java ########## @@ -443,6 +447,25 @@ public static Sensor suppressionBufferSizeSensor(final String threadId, ); } + public static Sensor e2ELatencySensor(final String threadId, + final String taskId, + final String storeType, + final String storeName, + final StreamsMetricsImpl streamsMetrics) { + final Sensor sensor = streamsMetrics.storeLevelSensor(threadId, taskId, storeName, RECORD_E2E_LATENCY, RecordingLevel.TRACE); + final Map<String, String> tagMap = streamsMetrics.storeLevelTagMap(threadId, taskId, storeType, storeName); + addAvgAndMinAndMaxToSensor( + sensor, + STATE_STORE_LEVEL_GROUP, Review comment: I just realized that we should not put new metrics into old groups. Your code is fine. Do not use `stateStoreLevelGroup()`! Sorry for the confusion. ---------------------------------------------------------------- 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