vrajat commented on code in PR #13598:
URL: https://github.com/apache/pinot/pull/13598#discussion_r1741406251


##########
pinot-spi/src/main/java/org/apache/pinot/spi/trace/Tracing.java:
##########
@@ -254,14 +260,25 @@ private ThreadAccountantOps() {
     }
 
     public static void setupRunner(String queryId) {
+      setupRunner(queryId, ThreadExecutionContext.TaskType.SSE);
+    }
+
+    public static void setupRunner(String queryId, 
ThreadExecutionContext.TaskType taskType) {
       Tracing.getThreadAccountant().setThreadResourceUsageProvider(new 
ThreadResourceUsageProvider());
-      Tracing.getThreadAccountant().createExecutionContext(queryId, 
CommonConstants.Accounting.ANCHOR_TASK_ID, null);
+      Tracing.getThreadAccountant()
+          .createExecutionContext(queryId, 
CommonConstants.Accounting.ANCHOR_TASK_ID, taskType, null);
     }
 
     public static void setupWorker(int taskId, ThreadResourceUsageProvider 
threadResourceUsageProvider,
         ThreadExecutionContext threadExecutionContext) {
+      setupWorker(taskId, ThreadExecutionContext.TaskType.SSE, 
threadResourceUsageProvider, threadExecutionContext);
+    }
+
+    public static void setupWorker(int taskId, ThreadExecutionContext.TaskType 
taskType,

Review Comment:
   Done



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

Reply via email to