Add note about Kafka consumer iterator thread safety
MODIFY
dd-java-agent/instrumentation/kafka-clients-0.11/src/main/java/datadog/trace/instrumentation/kafka_clients/TracingIterable.java
dd-java-agent/instrumentation/kafka-clients-0.11/src/main/java/datadog/trace/instrumentation/kafka_clients/TracingIterable.java
@@ -33,6 +33,10 @@ public class TracingIterable implements Iterable<ConsumerRecord> {
private final String operationName;
private final KafkaDecorator decorator;
+ /**
+ * Note: this may potentially create problems if this iterator is used from different threads.
+ * But at the moment we cannot do much about this.
+ */
private Scope currentScope;
public TracingIterator(

Add note about Kafka consumer iterator thread safety