dajac commented on a change in pull request #8933: URL: https://github.com/apache/kafka/pull/8933#discussion_r456415576
########## File path: clients/src/main/java/org/apache/kafka/common/metrics/Sensor.java ########## @@ -97,7 +97,25 @@ public static RecordingLevel forName(String name) { public boolean shouldRecord(final int configId) { return configId == DEBUG.id || configId == this.id; } + } + public enum QuotaEnforcementType { Review comment: On one side, we have names that describe how the quota enforcement behave, and on the other side, we have names that describe where the quota is enforced. I personally lean towards the current proposal but I an open to discuss this. My reasoning is that the current proposal is aligned with the naming in the quota manager as well. That makes the overall more consistent IMO. ---------------------------------------------------------------- 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