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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]