Add note about Kafka consumer iterator thread safety
This commit is contained in:
parent
a3a325868c
commit
ef94e2fb79
|
@ -33,6 +33,10 @@ public class TracingIterable implements Iterable<ConsumerRecord> {
|
||||||
private final String operationName;
|
private final String operationName;
|
||||||
private final KafkaDecorator decorator;
|
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;
|
private Scope currentScope;
|
||||||
|
|
||||||
public TracingIterator(
|
public TracingIterator(
|
||||||
|
|
Loading…
Reference in New Issue