From 1e0b9ba4c6fd14ab8ddf5baa8578e77615c7e939 Mon Sep 17 00:00:00 2001 From: Trask Stalnaker Date: Thu, 23 Jan 2025 17:50:40 -0800 Subject: [PATCH] Test upcoming invoke dynamic option --- .../applicationinsights/smoketest/SmokeTestExtension.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/smoke-tests/framework/src/main/java/com/microsoft/applicationinsights/smoketest/SmokeTestExtension.java b/smoke-tests/framework/src/main/java/com/microsoft/applicationinsights/smoketest/SmokeTestExtension.java index bfb8d32e4d..b41ef590f0 100644 --- a/smoke-tests/framework/src/main/java/com/microsoft/applicationinsights/smoketest/SmokeTestExtension.java +++ b/smoke-tests/framework/src/main/java/com/microsoft/applicationinsights/smoketest/SmokeTestExtension.java @@ -452,6 +452,10 @@ private void startTestApplicationContainer() throws Exception { "-Dapplicationinsights.testing.statsbeat.ikey=00000000-0000-0000-0000-0FEEDDADBEEG"); javaToolOptions.add( "-Dapplicationinsights.testing.statsbeat.endpoint=http://host.testcontainers.internal:6060/"); + if (!currentImageName.startsWith("ibm-semeru-runtimes:") + && !currentImageName.contains("-openj9-")) { + javaToolOptions.add("-Dotel.javaagent.experimental.indy=true"); + } } container.withEnv("JAVA_TOOL_OPTIONS", String.join(" ", javaToolOptions));