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
|`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
+
|`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
+
30
+
## Step 2: Add the 3.x Java agent
31
+
32
+
Add the 3.x Java agent to your JVM command-line args, for example
If you were using the Application Insights 2.x Java agent, just replace your existing `-javaagent:...` with the above.
39
+
40
+
> [!Note]
41
+
> If you were using the spring-boot-starter and if you prefer, there is an alternative to using the Java agent. See [3.x Spring Boot](./java-spring-boot.md).
23
42
43
+
## Step 3: Configure your Application Insights connection string
24
44
45
+
See [configuring the connection string](./java-standalone-config.md#connection-string).
46
+
47
+
## Additional notes
48
+
49
+
The rest of this document describes limitations and changes that you may encounter
50
+
when upgrading from 2.x to 3.x, as well as some workarounds that you may find helpful.
25
51
26
52
## TelemetryInitializers and TelemetryProcessors
27
53
@@ -38,12 +64,12 @@ This use case is supported in Application Insights Java 3.x using [Instrumentati
38
64
39
65
## Operation names
40
66
41
-
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
42
68
43
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":::
44
70
45
71
Operation names in Application Insights Java 3.x have changed to generally provide a better aggregated view
46
-
in the Application Insights Portal U/X, e.g.
72
+
in the Application Insights Portal U/X, for example
0 commit comments