see-quick commented on code in PR #20672:
URL: https://github.com/apache/kafka/pull/20672#discussion_r2472807450
##########
clients/clients-integration-tests/src/test/java/org/apache/kafka/clients/admin/ClientTelemetryTest.java:
##########
@@ -192,4 +256,38 @@ public ClientTelemetryReceiver clientReceiver() {
}
}
+ @SuppressWarnings("unused")
+ public static class TelemetryExporter implements
ClientTelemetryExporterProvider, MetricsReporter {
+
+ public static final Map<Uuid, List<Long>> PUSH_TIMESTAMPS = new
ConcurrentHashMap<>();
+
+ @Override
+ public void init(List<KafkaMetric> metrics) {
+ }
+
+ @Override
+ public void metricChange(KafkaMetric metric) {
+ }
+
+ @Override
+ public void metricRemoval(KafkaMetric metric) {
+ }
+
+ @Override
+ public void close() {
+ }
+
+ @Override
+ public void configure(Map<String, ?> configs) {
+ }
+
+ @Override
+ public ClientTelemetryExporter clientTelemetryExporter() {
+ return (context, payload) -> {
+ Uuid clientId = payload.clientInstanceId();
Review Comment:
I will inline this.
--
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]