Increase wait time for in-flight metrics
MODIFY
instrumentation/micrometer/micrometer-1.5/testing/src/main/java/io/opentelemetry/instrumentation/micrometer/v1_5/AbstractDistributionSummaryTest.java
instrumentation/micrometer/micrometer-1.5/testing/src/main/java/io/opentelemetry/instrumentation/micrometer/v1_5/AbstractDistributionSummaryTest.java
@@ -207,7 +207,7 @@ public abstract class AbstractDistributionSummaryTest {
// when
Metrics.globalRegistry.remove(summary);
- Thread.sleep(10); // give time for any inflight metric export to be received
+ Thread.sleep(100); // give time for any inflight metric export to be received
testing().clearData();
// then

MODIFY
instrumentation/micrometer/micrometer-1.5/testing/src/main/java/io/opentelemetry/instrumentation/micrometer/v1_5/AbstractFunctionCounterTest.java
instrumentation/micrometer/micrometer-1.5/testing/src/main/java/io/opentelemetry/instrumentation/micrometer/v1_5/AbstractFunctionCounterTest.java
@@ -63,7 +63,7 @@ public abstract class AbstractFunctionCounterTest {
// when
Metrics.globalRegistry.remove(counter);
- Thread.sleep(10); // give time for any inflight metric export to be received
+ Thread.sleep(100); // give time for any inflight metric export to be received
testing().clearData();
// then

MODIFY
instrumentation/micrometer/micrometer-1.5/testing/src/main/java/io/opentelemetry/instrumentation/micrometer/v1_5/AbstractFunctionTimerSecondsTest.java
instrumentation/micrometer/micrometer-1.5/testing/src/main/java/io/opentelemetry/instrumentation/micrometer/v1_5/AbstractFunctionTimerSecondsTest.java
@@ -88,7 +88,7 @@ public abstract class AbstractFunctionTimerSecondsTest {
// when
Metrics.globalRegistry.remove(functionTimer);
- Thread.sleep(10); // give time for any inflight metric export to be received
+ Thread.sleep(100); // give time for any inflight metric export to be received
testing().clearData();
// then

MODIFY
instrumentation/micrometer/micrometer-1.5/testing/src/main/java/io/opentelemetry/instrumentation/micrometer/v1_5/AbstractFunctionTimerTest.java
instrumentation/micrometer/micrometer-1.5/testing/src/main/java/io/opentelemetry/instrumentation/micrometer/v1_5/AbstractFunctionTimerTest.java
@@ -90,7 +90,7 @@ public abstract class AbstractFunctionTimerTest {
// when
Metrics.globalRegistry.remove(functionTimer);
- Thread.sleep(10); // give time for any inflight metric export to be received
+ Thread.sleep(100); // give time for any inflight metric export to be received
testing().clearData();
// then

MODIFY
instrumentation/micrometer/micrometer-1.5/testing/src/main/java/io/opentelemetry/instrumentation/micrometer/v1_5/AbstractGaugeTest.java
instrumentation/micrometer/micrometer-1.5/testing/src/main/java/io/opentelemetry/instrumentation/micrometer/v1_5/AbstractGaugeTest.java
@@ -61,7 +61,7 @@ public abstract class AbstractGaugeTest {
// when
Metrics.globalRegistry.remove(gauge);
- Thread.sleep(10); // give time for any inflight metric export to be received
+ Thread.sleep(100); // give time for any inflight metric export to be received
testing().clearData();
// then

MODIFY
instrumentation/micrometer/micrometer-1.5/testing/src/main/java/io/opentelemetry/instrumentation/micrometer/v1_5/AbstractLongTaskTimerSecondsTest.java
instrumentation/micrometer/micrometer-1.5/testing/src/main/java/io/opentelemetry/instrumentation/micrometer/v1_5/AbstractLongTaskTimerSecondsTest.java
@@ -121,7 +121,7 @@ public abstract class AbstractLongTaskTimerSecondsTest {
// when timer is removed from the registry
Metrics.globalRegistry.remove(timer);
- Thread.sleep(10); // give time for any in flight metric export to be received
+ Thread.sleep(100); // give time for any in flight metric export to be received
testing().clearData();
timer.start();

MODIFY
instrumentation/micrometer/micrometer-1.5/testing/src/main/java/io/opentelemetry/instrumentation/micrometer/v1_5/AbstractLongTaskTimerTest.java
instrumentation/micrometer/micrometer-1.5/testing/src/main/java/io/opentelemetry/instrumentation/micrometer/v1_5/AbstractLongTaskTimerTest.java
@@ -121,7 +121,7 @@ public abstract class AbstractLongTaskTimerTest {
// when timer is removed from the registry
Metrics.globalRegistry.remove(timer);
- Thread.sleep(10); // give time for any in flight metric export to be received
+ Thread.sleep(100); // give time for any in flight metric export to be received
testing().clearData();
timer.start();

MODIFY
instrumentation/micrometer/micrometer-1.5/testing/src/main/java/io/opentelemetry/instrumentation/micrometer/v1_5/AbstractMeterTest.java
instrumentation/micrometer/micrometer-1.5/testing/src/main/java/io/opentelemetry/instrumentation/micrometer/v1_5/AbstractMeterTest.java
@@ -207,7 +207,7 @@ public abstract class AbstractMeterTest {
// when
Metrics.globalRegistry.remove(meter);
- Thread.sleep(10); // give time for any inflight metric export to be received
+ Thread.sleep(100); // give time for any inflight metric export to be received
testing().clearData();
testing()

MODIFY
instrumentation/micrometer/micrometer-1.5/testing/src/main/java/io/opentelemetry/instrumentation/micrometer/v1_5/AbstractTimerSecondsTest.java
instrumentation/micrometer/micrometer-1.5/testing/src/main/java/io/opentelemetry/instrumentation/micrometer/v1_5/AbstractTimerSecondsTest.java
@@ -85,7 +85,7 @@ public abstract class AbstractTimerSecondsTest {
// when
Metrics.globalRegistry.remove(timer);
timer.record(12, TimeUnit.SECONDS);
- Thread.sleep(10); // give time for any inflight metric export to be received
+ Thread.sleep(100); // give time for any inflight metric export to be received
testing().clearData();
// then

MODIFY
instrumentation/micrometer/micrometer-1.5/testing/src/main/java/io/opentelemetry/instrumentation/micrometer/v1_5/AbstractTimerTest.java
instrumentation/micrometer/micrometer-1.5/testing/src/main/java/io/opentelemetry/instrumentation/micrometer/v1_5/AbstractTimerTest.java
@@ -234,7 +234,7 @@ public abstract class AbstractTimerTest {
// when
Metrics.globalRegistry.remove(timer);
- Thread.sleep(10); // give time for any inflight metric export to be received
+ Thread.sleep(100); // give time for any inflight metric export to be received
testing().clearData();
// then

Increase wait time for in-flight metrics (#5649)