Wait a bit before retrying
MODIFY
instrumentation/spring/spring-kafka-2.7/testing/src/main/java/io/opentelemetry/testing/AbstractSpringKafkaTest.java
instrumentation/spring/spring-kafka-2.7/testing/src/main/java/io/opentelemetry/testing/AbstractSpringKafkaTest.java
@@ -90,6 +90,7 @@ public abstract class AbstractSpringKafkaTest {
break;
} else if (i < maxAttempts) {
testing.waitForTraces(2);
+ Thread.sleep(1_000); // sleep a bit to give time for all the spans to arrive
testing.clearData();
logger.info("Messages weren't received as batch, retrying");
}

Wait a bit before retrying (#5965)