gortiz commented on code in PR #15919: URL: https://github.com/apache/pinot/pull/15919#discussion_r2121035156
########## pinot-spi/src/main/java/org/apache/pinot/spi/query/QueryThreadContext.java: ########## @@ -415,6 +429,18 @@ public static void setQueryEngine(String queryEngine) { get().setQueryEngine(queryEngine); } + /** + * Returns the serviceId of the query. + * + * This is usually the id that identifies the server, broker, controller, etc. + * + * The default value of {@code null} means the serviceId is not set. + * @throws IllegalStateException if the {@link QueryThreadContext} is not initialized + */ + public static String getServiceId() { + return get().getServiceId(); + } Review Comment: Fixed -- 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