gortiz commented on code in PR #16040: URL: https://github.com/apache/pinot/pull/16040#discussion_r2144663670
########## pinot-broker/src/main/java/org/apache/pinot/broker/requesthandler/BaseSingleStageBrokerRequestHandler.java: ########## @@ -317,7 +317,7 @@ protected BrokerResponse handleRequest(long requestId, String query, SqlNodeAndO _queryLogger.log(requestId, query); //Start instrumentation context. This must not be moved further below interspersed into the code. - Tracing.ThreadAccountantOps.setupRunner(String.valueOf(requestId)); + Tracing.ThreadAccountantOps.setupRunner(QueryThreadContext.getCid()); Review Comment: nit: you can create a static method called `setupRunner()` that directly gets the Cid from the QueryThreadContext -- 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