File tree Expand file tree Collapse file tree 2 files changed +97
-353
lines changed
main/java/io/opentelemetry/smoketest
test/java/io/opentelemetry/smoketest/appserver Expand file tree Collapse file tree 2 files changed +97
-353
lines changed Original file line number Diff line number Diff 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 ()
You can’t perform that action at this time.
0 commit comments