You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: streams/src/main/java/org/apache/kafka/streams/internals/metrics/StreamsThreadMetricsDelegatingReporter.java
+5-3Lines changed: 5 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -58,9 +58,11 @@ public void metricChange(final KafkaMetric metric) {
58
58
}
59
59
}
60
60
/*
61
-
The KafkaMetric object is a singleton object shared by all StreamThread instances.
62
-
So we need to make sure we only register metrics for the current StreamThread otherwise
63
-
Kafka Streams would register multiple metrics for all StreamThread instances.
61
+
The KafkaMetric object is a singleton shared by all StreamThread instances.
62
+
So we need to make sure we only pass metrics for the current StreamThread that contains this
63
+
MetricsReporter instance, which will register metrics with the embedded KafkaConsumer to pass
64
+
through the telemetry pipeline.
65
+
Otherwise, Kafka Streams would register multiple metrics for all StreamThreads.
0 commit comments