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
+11-1Lines changed: 11 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -118,9 +118,19 @@ public void init(EarlyInitAgentConfig earlyConfig) {
// class path null with a Spring Boot executable JAR
123
+
if (classPath != null
124
+
&& classPath.contains(
125
+
"applicationinsights-agent")) { // JAR name in Maven central, the user could have
126
+
// renamed it
127
+
startupLogger.warn(
128
+
"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.");
0 commit comments