dsmiley commented on code in PR #5405:
URL: https://github.com/apache/solr/pull/5405#discussion_r4740316819
##########
solr/core/src/java/org/apache/solr/util/tracing/TraceUtils.java:
##########
@@ -172,11 +214,15 @@ public static void setOperations(SolrQueryRequest req,
String clazz, List<String
}
public static Span startCollectionApiCommandSpan(
- String name, String collection, boolean isAsync) {
+ String name, String collection, boolean isAsync, Context parent) {
Tracer tracer = getGlobalTracer();
SpanKind kind = isAsync ? SpanKind.PRODUCER : SpanKind.CLIENT;
Review Comment:
Your explanation helps justify my concern about TraceUtils. It's not
apparent from the code here that what you said is true! If tracing was inlined
into the call-sites, then a reader could deduce what you said much more easily.
On the other hand, the method could be named with "Overseer" in it and then
it'd assuage my concern. Let's do that.
--
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]