Skip to content

Commit fe96937

Browse files
committed
Java agent
1 parent b7cf9d1 commit fe96937

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

articles/azure-monitor/app/java-standalone-upgrade-from-2x.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ ms.reviewer: mmcc
1111
# Upgrading from Application Insights Java 2.x SDK
1212

1313
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
1515
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.
1717

1818
## Step 1: Update dependencies
1919

@@ -22,22 +22,22 @@ auto-instrumentation which is provided by the 3.x Javaagent.
2222
| `applicationinsights-core` | Update the version to `3.4.0` or later | |
2323
| `applicationinsights-web` | Update the version to `3.4.0` or later, and remove the Application Insights web filter your `web.xml` file. | |
2424
| `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. |
2828
| `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. |
2929

30-
## Step 2: Add the 3.x Javaagent
30+
## Step 2: Add the 3.x Java agent
3131

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.
3333

3434
```
3535
-javaagent:path/to/applicationinsights-agent-3.4.0.jar
3636
```
3737

38-
If you were using the Application Insights 2.x Javaagent, just replace your existing `-javaagent:...` with the above.
38+
If you were using the Application Insights 2.x Java agent, just replace your existing `-javaagent:...` with the above.
3939

40-
Note: if you were using the spring-boot-starter and if you prefer, there is an alternative to using the Javaagent, see
40+
Note: if you were using the spring-boot-starter and if you prefer, there is an alternative to using the Java agent, see
4141
[3.x Spring Boot](./java-spring-boot.md).
4242

4343
## Step 3: Configure your Application Insights connection string

0 commit comments

Comments
 (0)