chia7712 commented on code in PR #19050:
URL: https://github.com/apache/kafka/pull/19050#discussion_r2044022395


##########
metadata/src/main/java/org/apache/kafka/metadata/authorizer/StandardAuthorizer.java:
##########
@@ -207,4 +216,45 @@ static AuthorizationResult getDefaultResult(Map<String, ?> 
configs) {
         if (configValue == null) return DENIED;
         return Boolean.parseBoolean(configValue.toString().trim()) ? ALLOWED : 
DENIED;
     }
+
+    @Override
+    public void withPluginMetrics(PluginMetrics metrics) {
+        this.authorizerMetrics = new AuthorizerMetrics(metrics);
+    }
+
+    private class AuthorizerMetrics {

Review Comment:
   Have you considered exposing `AuthorizerMetrics` as public APIs for custom 
Authorizer?



-- 
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.

To unsubscribe, e-mail: jira-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to