bbejeck commented on code in PR #17664:
URL: https://github.com/apache/kafka/pull/17664#discussion_r1826569227


##########
streams/src/main/java/org/apache/kafka/streams/KafkaStreams.java:
##########
@@ -1929,10 +1930,18 @@ public synchronized ClientInstanceIds 
clientInstanceIds(final Duration timeout)
 
             // could be `null` if telemetry is disabled on the consumer itself
             if (instanceId != null) {
-                clientInstanceIds.addConsumerInstanceId(
-                    clientFuture.getKey(),
-                    instanceId
-                );
+                final String clientFutureKey = clientFuture.getKey();
+                if 
(clientFutureKey.toLowerCase(Locale.getDefault()).contains("producer")) {

Review Comment:
   I was aiming for something more generic if the thread names were to change, 
but that's unlikely, so I'm updating it.



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

Reply via email to