anmolanmol1234 commented on code in PR #8056:
URL: https://github.com/apache/hadoop/pull/8056#discussion_r2559569789


##########
hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/utils/TracingContext.java:
##########
@@ -398,4 +400,12 @@ public void setReadType(ReadType readType) {
   public ReadType getReadType() {
     return readType;
   }
+
+  /**
+   * Sets the metric results string used for tracing or logging.
+   * @param metricResults the formatted metric data to store.
+   */
+  public void setMetricResults(final String metricResults) {

Review Comment:
   taken



##########
hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/utils/TracingContext.java:
##########
@@ -244,9 +243,12 @@ public void constructHeader(AbfsHttpOperation 
httpOperation, String previousFail
     if (listener != null) { //for testing
       listener.callTracingHeaderValidator(header, format);
     }
-    
httpOperation.setRequestProperty(HttpHeaderConfigurations.X_MS_CLIENT_REQUEST_ID,
 header);
+    // If metricHeader is present, append it to the client request ID header 
for tracing
     if (!metricHeader.equals(EMPTY_STRING)) {
-      
httpOperation.setRequestProperty(HttpHeaderConfigurations.X_MS_FECLIENT_METRICS,
 metricHeader);
+      
httpOperation.setRequestProperty(HttpHeaderConfigurations.X_MS_CLIENT_REQUEST_ID,
 header + COLON + metricHeader);

Review Comment:
   taken



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

Reply via email to