Skip to content

Commit 96db031

Browse files
committed
app server
1 parent ac4eaff commit 96db031

File tree

2 files changed

+97
-353
lines changed

2 files changed

+97
-353
lines changed

smoke-tests/src/main/java/io/opentelemetry/smoketest/SmokeTestInstrumentationExtension.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ public class SmokeTestInstrumentationExtension extends InstrumentationExtension
5757
private final String agentPath =
5858
System.getProperty("io.opentelemetry.smoketest.agent.shadowJar.path");
5959

60+
private final String agentVersion = readAgentVersion();
61+
6062
private final AutoCleanupExtension autoCleanup = AutoCleanupExtension.create();
6163

6264
@FunctionalInterface
@@ -65,7 +67,6 @@ public interface GetTargetImage {
6567
}
6668

6769
private final GetTargetImage getTargetImage;
68-
6970
private final String[] command;
7071
private final String jvmArgsEnvVarName;
7172
private final boolean setServiceName;
@@ -123,6 +124,10 @@ public void afterEach(ExtensionContext context) throws Exception {
123124
}
124125

125126
public String getAgentVersion() {
127+
return agentVersion;
128+
}
129+
130+
private String readAgentVersion() {
126131
try (JarFile agentJar = new JarFile(agentPath)) {
127132
return agentJar
128133
.getManifest()

0 commit comments

Comments
 (0)