Remove DDJavaAgentInfo - it doesn't seem to be used
DELETE
dd-java-agent/agent-tooling/src/main/java/datadog/trace/agent/tooling/DDJavaAgentInfo.java
-package datadog.trace.agent.tooling;
-
-import java.lang.reflect.Method;
-import lombok.extern.slf4j.Slf4j;
-
-@Slf4j
-public class DDJavaAgentInfo {
- public static final String VERSION;
-
- static {
- String v;
- try {
- final Class<?> tracingAgentClass =
- ClassLoader.getSystemClassLoader().loadClass("datadog.trace.agent.TracingAgent");
- final Method getAgentVersionMethod = tracingAgentClass.getMethod("getAgentVersion");
- v = (String) getAgentVersionMethod.invoke(null);
- } catch (final Exception e) {
- log.error("failed to read agent version", e);
- v = "unknown";
- }
- VERSION = v;
- log.info("dd-java-agent - version: {}", v);
- }
-}

MODIFY
dd-java-agent/src/test/groovy/datadog/trace/agent/DDInfoTest.groovy
dd-java-agent/src/test/groovy/datadog/trace/agent/DDInfoTest.groovy
@@ -16,17 +16,4 @@ class DDInfoTest extends Specification {
DDTraceOTInfo.VERSION != ""
DDTraceOTInfo.VERSION != "unknown"
}
-
- def "info accessible from agent"() {
- setup:
- def clazz = Class.forName("datadog.trace.agent.tooling.DDJavaAgentInfo")
- def versionField = clazz.getDeclaredField("VERSION")
- def version = versionField.get(null)
-
- expect:
- version != null
- version != ""
- version != "unknown"
- version == DDTraceApiInfo.VERSION
- }
}

Remove DDJavaAgentInfo - it doesn't seem to be used