You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: agent/agent-tooling/src/main/java/com/microsoft/applicationinsights/agent/internal/init/FirstEntryPoint.java
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -126,6 +126,8 @@ public void init(EarlyInitAgentConfig earlyConfig) {
126
126
// class path null with a Spring Boot executable JAR
127
127
if (classPath != null
128
128
// JAR name in Maven central, the user could have renamed it
129
+
&& isJavaVersionEqualOrGreaterThan11() // -javaagent content added to the classpath in
"The applicationinsights-agent JAR is in the class path. You should remove it because it could lead to unexpected results. You should configure the Java agent with -javaagent. You can also use the runtime attachment with Spring Boot applications.");
@@ -151,6 +153,11 @@ public void init(EarlyInitAgentConfig earlyConfig) {
0 commit comments