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: articles/azure-monitor/app/java-standalone-upgrade-from-2x.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,9 +11,9 @@ ms.reviewer: mmcc
11
11
# Upgrading from Application Insights Java 2.x SDK
12
12
13
13
There are typically no code changes when upgrading to 3.x. The 3.x SDK dependencies are just no-op API versions of the
14
-
2.x SDK dependencies, but when used in conjunction with the 3.x Javaagent, the 3.x Javaagent provides the implementation
14
+
2.x SDK dependencies, but when used in conjunction with the 3.x Java agent, the 3.x Java agent provides the implementation
15
15
for these 3.x SDK dependencies, so that any of your custom instrumentation will be correlated with all of the new
16
-
auto-instrumentation which is provided by the 3.x Javaagent.
16
+
auto-instrumentation which is provided by the 3.x Java agent.
17
17
18
18
## Step 1: Update dependencies
19
19
@@ -22,22 +22,22 @@ auto-instrumentation which is provided by the 3.x Javaagent.
22
22
|`applicationinsights-core`| Update the version to `3.4.0` or later ||
23
23
|`applicationinsights-web`| Update the version to `3.4.0` or later, and remove the Application Insights web filter your `web.xml` file. ||
24
24
|`applicationinsights-web-auto`| Replace with `3.4.0` or later of `applicationinsights-web`||
25
-
|`applicationinsights-logging-log4j1_2`| Remove the dependency and remove the Application Insights appender from your log4j configuration. | This is no longer needed since Log4j 1.2 is auto-instrumented in the 3.x Javaagent. |
26
-
|`applicationinsights-logging-log4j2`| Remove the dependency and remove the Application Insights appender from your log4j configuration. | This is no longer needed since Log4j 2 is auto-instrumented in the 3.x Javaagent. |
27
-
|`applicationinsights-logging-log4j1_2`| Remove the dependency and remove the Application Insights appender from your logback configuration. | This is no longer needed since Logback is auto-instrumented in the 3.x Javaagent. |
25
+
|`applicationinsights-logging-log4j1_2`| Remove the dependency and remove the Application Insights appender from your log4j configuration. | This is no longer needed since Log4j 1.2 is auto-instrumented in the 3.x Java agent. |
26
+
|`applicationinsights-logging-log4j2`| Remove the dependency and remove the Application Insights appender from your log4j configuration. | This is no longer needed since Log4j 2 is auto-instrumented in the 3.x Java agent. |
27
+
|`applicationinsights-logging-log4j1_2`| Remove the dependency and remove the Application Insights appender from your logback configuration. | This is no longer needed since Logback is auto-instrumented in the 3.x Java agent. |
28
28
|`applicationinsights-spring-boot-starter`| Replace with `3.4.0` or later of `applicationinsights-web`| The cloud role name will no longer default to `spring.application.name`, see the [3.x configuration docs](./java-standalone-config.md#cloud-role-name) for configuring the cloud role name. |
29
29
30
-
## Step 2: Add the 3.x Javaagent
30
+
## Step 2: Add the 3.x Java agent
31
31
32
-
Add the 3.x Javaagent to your JVM command-line args, e.g.
32
+
Add the 3.x Java agent to your JVM command-line args, e.g.
0 commit comments