Skip to content

Commit 0545a83

Browse files
committed
fix buffer pools
1 parent 60194ab commit 0545a83

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

smoke-tests-otel-starter/spring-boot-common/src/main/java/io/opentelemetry/spring/smoketest/AbstractOtelSpringStarterSmokeTest.java

+6-10
Original file line numberDiff line numberDiff line change
@@ -212,18 +212,14 @@ void shouldSendTelemetry() {
212212
OtelSpringStarterSmokeTestController.TEST_HISTOGRAM,
213213
AbstractIterableAssert::isNotEmpty);
214214

215-
// runtime metrics
216-
// from special logic for threads that is automatically detected in GraalVM native image
217-
// see io.opentelemetry.instrumentation.runtimemetrics.java8.Threads
218-
testing.waitAndAssertMetrics(
219-
"io.opentelemetry.runtime-telemetry-java8",
220-
"jvm.thread.count",
221-
AbstractIterableAssert::isNotEmpty);
222-
223-
// JMX based metrics
215+
// JMX based metrics - test one per JMX bean
224216
List<String> jmxMetrics =
225217
new ArrayList<>(
226-
Arrays.asList("jvm.memory.used", "jvm.system.cpu.load_1m", "jvm.memory.init"));
218+
Arrays.asList(
219+
"jvm.thread.count",
220+
"jvm.memory.used",
221+
"jvm.system.cpu.load_1m",
222+
"jvm.memory.init"));
227223

228224
boolean noNative = System.getProperty("org.graalvm.nativeimage.imagecode") == null;
229225
if (noNative) {

0 commit comments

Comments
 (0)