vvivekiyer commented on code in PR #8907: URL: https://github.com/apache/pinot/pull/8907#discussion_r906279935
########## pinot-broker/src/main/java/org/apache/pinot/broker/requesthandler/BaseBrokerRequestHandler.java: ########## @@ -453,8 +455,13 @@ private BrokerResponseNative handleRequest(long requestId, String query, JsonNod // Send empty response since we don't need to evaluate either offline or realtime request. BrokerResponseNative brokerResponse = BrokerResponseNative.empty(); + // Extract source info from incoming request + Collection<String> remoteIps = null; Review Comment: My suggestion is to pass requestIdentity to logBrokerResponse() instead of passing clientIps. `logBrokerResponse(long requestId, ..., @Nullable RequesterIdentity requesterIdentity) ` In logBrokerResponse, we can extract clientIps only if the property is set and rateLimiter decides to log the query. -- 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: commits-unsubscr...@pinot.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org