stillalex commented on code in PR #1854:
URL: https://github.com/apache/solr/pull/1854#discussion_r1301578462


##########
solr/core/src/java/org/apache/solr/util/stats/InstrumentedHttpRequestExecutor.java:
##########
@@ -147,6 +152,13 @@ public HttpResponse execute(HttpRequest request, 
HttpClientConnection conn, Http
     }
   }
 
+  private static final TextMapSetter<HttpRequest> TRACE_INJECTOR = (r, k, v) 
-> r.setHeader(k, v);
+
+  private static void injectContextIntoRequest(HttpRequest request) {
+    TextMapPropagator textMapPropagator = TraceUtils.getTextMapPropagator();
+    textMapPropagator.inject(Context.current(), request, TRACE_INJECTOR);
+  }
+

Review Comment:
   > Worthy of it's own JIRA issue IMO.
   
   agreed. I wanted to cover all feedback received on the PR and in doing so, I 
lost focus a bit. I will break this off into its own Jira.



-- 
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: issues-unsubscr...@solr.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org
For additional commands, e-mail: issues-h...@solr.apache.org

Reply via email to