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: dd-java-agent/instrumentation/kafka-clients-0.11/src/main/java/datadog/trace/instrumentation/kafka_clients/KafkaDecorator.java
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -162,6 +162,18 @@ public void onProduce(
162
162
PRODUCER_BOOSTRAP_SERVERS_CACHE.computeIfAbsent(
163
163
producerConfig, BOOTSTRAP_SERVERS_JOINER));
164
164
}
165
+
166
+
167
+
try {
168
+
System.out.println("Before sleep for 1ms Rob kafkaClient011");
169
+
Thread.sleep(1);
170
+
// Sleep to avoid race conditions between topology updates
Copy file name to clipboardExpand all lines: dd-java-agent/instrumentation/kafka-clients-3.8/src/main/java17/datadog/trace/instrumentation/kafka_clients38/KafkaDecorator.java
+10Lines changed: 10 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -162,6 +162,16 @@ public void onProduce(
162
162
PRODUCER_BOOSTRAP_SERVERS_CACHE.computeIfAbsent(
163
163
producerConfig, BOOTSTRAP_SERVERS_JOINER));
164
164
}
165
+
166
+
try {
167
+
System.out.println("Before sleep for 1ms Rob kafkaClient38 Java17");
168
+
Thread.sleep(1);
169
+
// Sleep to avoid race conditions between topology updates
0 commit comments