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
+14-14Lines changed: 14 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,25 +11,25 @@ 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 Java agent, the 3.x Java agent provides the implementation
15
-
for these 3.x SDK dependencies, so that any of your custom instrumentation will be correlated with all of the new
14
+
2.x SDK dependencies, but when used along with the 3.x Java agent, the 3.x Java agent provides the implementation
15
+
for them, and your custom instrumentation will be correlated with all the new
16
16
auto-instrumentation which is provided by the 3.x Java agent.
17
17
18
18
## Step 1: Update dependencies
19
19
20
-
| 2.x dependency | Action | Remarks |
21
-
|----------------|--------|---------|
22
-
|`applicationinsights-core`| Update the version to `3.4.0` or later ||
23
-
|`applicationinsights-web`| Update the version to `3.4.0` or later, and remove the Application Insights web filter your `web.xml` file. ||
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 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. |
|`applicationinsights-core`| Update the version to `3.4.0` or later ||
23
+
|`applicationinsights-web`| Update the version to `3.4.0` or later, and remove the Application Insights web filter your `web.xml` file. ||
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. |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. |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. |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
30
## Step 2: Add the 3.x Java agent
31
31
32
-
Add the 3.x Java agent to your JVM command-line args, e.g.
32
+
Add the 3.x Java agent to your JVM command-line args, for example
@@ -64,12 +64,12 @@ This use case is supported in Application Insights Java 3.x using [Instrumentati
64
64
65
65
## Operation names
66
66
67
-
In the Application Insights Java 2.x SDK, in some cases, the operation names contained the full path, e.g.
67
+
In the Application Insights Java 2.x SDK, in some cases, the operation names contained the full path, for example
68
68
69
69
:::image type="content" source="media/java-ipa/upgrade-from-2x/operation-names-with-full-path.png" alt-text="Screenshot showing operation names with full path":::
70
70
71
71
Operation names in Application Insights Java 3.x have changed to generally provide a better aggregated view
72
-
in the Application Insights Portal U/X, e.g.
72
+
in the Application Insights Portal U/X, for example
0 commit comments