rohangarg commented on code in PR #12867:
URL: https://github.com/apache/druid/pull/12867#discussion_r959291094
##########
services/src/main/java/org/apache/druid/server/AsyncQueryForwardingServlet.java:
##########
@@ -292,6 +301,18 @@ protected void service(HttpServletRequest request,
HttpServletResponse response)
doService(request, response);
}
+ /**
+ * Rebuilds the {@link SqlQuery} object with a sqlQueryId context paramenter
if not present
+ * @param sqlQuery the original SqlQuery
+ * @return an updated sqlQuery object with sqlQueryId context parameter
+ */
+ private SqlQuery buildSqlQueryWithId(SqlQuery sqlQuery)
+ {
+ Map<String, Object> context = new HashMap<>(sqlQuery.getContext());
+ context.putIfAbsent(BaseQuery.SQL_QUERY_ID, UUID.randomUUID().toString());
Review Comment:
discussed offiline, have added `BaseQuery.QUERY_ID` to the context, so the
event will have `id` dimension filled in router's `query/time` metric event as
well
--
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]