Skip to content

Commit 00a4659

Browse files
Merge pull request #220859 from AaronMaxwell/update-applicationinsights-java-to-3.4.6
Update the applicationinsights-java version to 3.4.6
2 parents 2d32da3 + 4c23af7 commit 00a4659

File tree

5 files changed

+35
-35
lines changed

5 files changed

+35
-35
lines changed

articles/azure-monitor/app/java-in-process-agent.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Azure Monitor Application Insights Java
33
description: Application performance monitoring for Java applications running in any environment without requiring code modification. Distributed tracing and application map.
44
ms.topic: conceptual
5-
ms.date: 12/05/2022
5+
ms.date: 12/07/2022
66
ms.devlang: java
77
ms.custom: devx-track-java, ignite-2022
88
ms.reviewer: mmcc
@@ -30,7 +30,7 @@ This section shows you how to download the auto-instrumentation jar file.
3030

3131
#### Download the jar file
3232

33-
Download the [applicationinsights-agent-3.4.5.jar](https://github.com/microsoft/ApplicationInsights-Java/releases/download/3.4.5/applicationinsights-agent-3.4.5.jar) file.
33+
Download the [applicationinsights-agent-3.4.6.jar](https://github.com/microsoft/ApplicationInsights-Java/releases/download/3.4.6/applicationinsights-agent-3.4.6.jar) file.
3434

3535
> [!WARNING]
3636
>
@@ -62,7 +62,7 @@ Download the [applicationinsights-agent-3.4.5.jar](https://github.com/microsoft/
6262

6363
#### Point the JVM to the jar file
6464

65-
Add `-javaagent:"path/to/applicationinsights-agent-3.4.5.jar"` to your application's JVM args.
65+
Add `-javaagent:"path/to/applicationinsights-agent-3.4.6.jar"` to your application's JVM args.
6666

6767
> [!TIP]
6868
> For help with configuring your application's JVM args, see [Tips for updating your JVM args](./java-standalone-arguments.md).
@@ -80,7 +80,7 @@ Add `-javaagent:"path/to/applicationinsights-agent-3.4.5.jar"` to your applicati
8080
APPLICATIONINSIGHTS_CONNECTION_STRING=<Copy connection string from Application Insights Resource Overview>
8181
```
8282

83-
- Or you can create a configuration file named `applicationinsights.json`. Place it in the same directory as `applicationinsights-agent-3.4.5.jar` with the following content:
83+
- Or you can create a configuration file named `applicationinsights.json`. Place it in the same directory as `applicationinsights-agent-3.4.6.jar` with the following content:
8484

8585
```json
8686
{

articles/azure-monitor/app/java-spring-boot.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Configure Azure Monitor Application Insights for Spring Boot
33
description: How to configure Azure Monitor Application Insights for Spring Boot applications
44
ms.topic: conceptual
5-
ms.date: 12/05/2022
5+
ms.date: 12/07/2022
66
ms.devlang: java
77
ms.custom: devx-track-java
88
---
@@ -13,24 +13,24 @@ There are two options for enabling Application Insights Java with Spring Boot: J
1313

1414
## Enabling with JVM argument
1515

16-
Add the JVM arg `-javaagent:"path/to/applicationinsights-agent-3.4.5.jar"` somewhere before `-jar`, for example:
16+
Add the JVM arg `-javaagent:"path/to/applicationinsights-agent-3.4.6.jar"` somewhere before `-jar`, for example:
1717

1818
```
19-
java -javaagent:"path/to/applicationinsights-agent-3.4.5.jar" -jar <myapp.jar>
19+
java -javaagent:"path/to/applicationinsights-agent-3.4.6.jar" -jar <myapp.jar>
2020
```
2121

2222
### Spring Boot via Docker entry point
2323

24-
If you're using the *exec* form, add the parameter `-javaagent:"path/to/applicationinsights-agent-3.4.5.jar"` to the parameter list somewhere before the `"-jar"` parameter, for example:
24+
If you're using the *exec* form, add the parameter `-javaagent:"path/to/applicationinsights-agent-3.4.6.jar"` to the parameter list somewhere before the `"-jar"` parameter, for example:
2525

2626
```
27-
ENTRYPOINT ["java", "-javaagent:path/to/applicationinsights-agent-3.4.5.jar", "-jar", "<myapp.jar>"]
27+
ENTRYPOINT ["java", "-javaagent:path/to/applicationinsights-agent-3.4.6.jar", "-jar", "<myapp.jar>"]
2828
```
2929

30-
If you're using the *shell* form, add the JVM arg `-javaagent:"path/to/applicationinsights-agent-3.4.5.jar"` somewhere before `-jar`, for example:
30+
If you're using the *shell* form, add the JVM arg `-javaagent:"path/to/applicationinsights-agent-3.4.6.jar"` somewhere before `-jar`, for example:
3131

3232
```
33-
ENTRYPOINT java -javaagent:"path/to/applicationinsights-agent-3.4.5.jar" -jar <myapp.jar>
33+
ENTRYPOINT java -javaagent:"path/to/applicationinsights-agent-3.4.6.jar" -jar <myapp.jar>
3434
```
3535

3636
### Configuration

articles/azure-monitor/app/java-standalone-arguments.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Adding the JVM arg - Azure Monitor Application Insights for Java
33
description: How to add the JVM arg that enables Azure Monitor Application Insights for Java
44
ms.topic: conceptual
5-
ms.date: 12/05/2022
5+
ms.date: 12/07/2022
66
ms.devlang: java
77
ms.custom: devx-track-java
88
ms.reviewer: mmcc
@@ -35,18 +35,18 @@ into the container from outside, and set the environment variable for the contai
3535
If you installed Tomcat via `apt-get` or `yum`, then you should have a file `/etc/tomcat8/tomcat8.conf`. Add this line to the end of that file:
3636

3737
```
38-
JAVA_OPTS="$JAVA_OPTS -javaagent:path/to/applicationinsights-agent-3.4.5.jar"
38+
JAVA_OPTS="$JAVA_OPTS -javaagent:path/to/applicationinsights-agent-3.4.6.jar"
3939
```
4040

4141
### Tomcat installed via download and unzip
4242

4343
If you installed Tomcat via download and unzip from [https://tomcat.apache.org](https://tomcat.apache.org), then you should have a file `<tomcat>/bin/catalina.sh`. Create a new file in the same directory named `<tomcat>/bin/setenv.sh` with the following content:
4444

4545
```
46-
CATALINA_OPTS="$CATALINA_OPTS -javaagent:path/to/applicationinsights-agent-3.4.5.jar"
46+
CATALINA_OPTS="$CATALINA_OPTS -javaagent:path/to/applicationinsights-agent-3.4.6.jar"
4747
```
4848

49-
If the file `<tomcat>/bin/setenv.sh` already exists, then modify that file and add `-javaagent:path/to/applicationinsights-agent-3.4.5.jar` to `CATALINA_OPTS`.
49+
If the file `<tomcat>/bin/setenv.sh` already exists, then modify that file and add `-javaagent:path/to/applicationinsights-agent-3.4.6.jar` to `CATALINA_OPTS`.
5050

5151

5252
## Tomcat 8 (Windows)
@@ -56,36 +56,36 @@ If the file `<tomcat>/bin/setenv.sh` already exists, then modify that file and a
5656
Locate the file `<tomcat>/bin/catalina.bat`. Create a new file in the same directory named `<tomcat>/bin/setenv.bat` with the following content:
5757

5858
```
59-
set CATALINA_OPTS=%CATALINA_OPTS% -javaagent:path/to/applicationinsights-agent-3.4.5.jar
59+
set CATALINA_OPTS=%CATALINA_OPTS% -javaagent:path/to/applicationinsights-agent-3.4.6.jar
6060
```
6161

6262
Quotes aren't necessary, but if you want to include them, the proper placement is:
6363

6464
```
65-
set "CATALINA_OPTS=%CATALINA_OPTS% -javaagent:path/to/applicationinsights-agent-3.4.5.jar"
65+
set "CATALINA_OPTS=%CATALINA_OPTS% -javaagent:path/to/applicationinsights-agent-3.4.6.jar"
6666
```
6767

68-
If the file `<tomcat>/bin/setenv.bat` already exists, just modify that file and add `-javaagent:path/to/applicationinsights-agent-3.4.5.jar` to `CATALINA_OPTS`.
68+
If the file `<tomcat>/bin/setenv.bat` already exists, just modify that file and add `-javaagent:path/to/applicationinsights-agent-3.4.6.jar` to `CATALINA_OPTS`.
6969

7070
### Running Tomcat as a Windows service
7171

72-
Locate the file `<tomcat>/bin/tomcat8w.exe`. Run that executable and add `-javaagent:path/to/applicationinsights-agent-3.4.5.jar` to the `Java Options` under the `Java` tab.
72+
Locate the file `<tomcat>/bin/tomcat8w.exe`. Run that executable and add `-javaagent:path/to/applicationinsights-agent-3.4.6.jar` to the `Java Options` under the `Java` tab.
7373

7474

7575
## JBoss EAP 7
7676

7777
### Standalone server
7878

79-
Add `-javaagent:path/to/applicationinsights-agent-3.4.5.jar` to the existing `JAVA_OPTS` environment variable in the file `JBOSS_HOME/bin/standalone.conf` (Linux) or `JBOSS_HOME/bin/standalone.conf.bat` (Windows):
79+
Add `-javaagent:path/to/applicationinsights-agent-3.4.6.jar` to the existing `JAVA_OPTS` environment variable in the file `JBOSS_HOME/bin/standalone.conf` (Linux) or `JBOSS_HOME/bin/standalone.conf.bat` (Windows):
8080

8181
```java ...
82-
JAVA_OPTS="-javaagent:path/to/applicationinsights-agent-3.4.5.jar -Xms1303m -Xmx1303m ..."
82+
JAVA_OPTS="-javaagent:path/to/applicationinsights-agent-3.4.6.jar -Xms1303m -Xmx1303m ..."
8383
...
8484
```
8585

8686
### Domain server
8787

88-
Add `-javaagent:path/to/applicationinsights-agent-3.4.5.jar` to the existing `jvm-options` in `JBOSS_HOME/domain/configuration/host.xml`:
88+
Add `-javaagent:path/to/applicationinsights-agent-3.4.6.jar` to the existing `jvm-options` in `JBOSS_HOME/domain/configuration/host.xml`:
8989

9090
```xml
9191
...
@@ -95,7 +95,7 @@ Add `-javaagent:path/to/applicationinsights-agent-3.4.5.jar` to the existing `jv
9595
<jvm-options>
9696
<option value="-server"/>
9797
<!--Add Java agent jar file here-->
98-
<option value="-javaagent:path/to/applicationinsights-agent-3.4.5.jar"/>
98+
<option value="-javaagent:path/to/applicationinsights-agent-3.4.6.jar"/>
9999
<option value="-XX:MetaspaceSize=96m"/>
100100
<option value="-XX:MaxMetaspaceSize=256m"/>
101101
</jvm-options>
@@ -135,20 +135,20 @@ Add these lines to `start.ini`
135135

136136
```
137137
--exec
138-
-javaagent:path/to/applicationinsights-agent-3.4.5.jar
138+
-javaagent:path/to/applicationinsights-agent-3.4.6.jar
139139
```
140140

141141

142142
## Payara 5
143143

144-
Add `-javaagent:path/to/applicationinsights-agent-3.4.5.jar` to the existing `jvm-options` in `glassfish/domains/domain1/config/domain.xml`:
144+
Add `-javaagent:path/to/applicationinsights-agent-3.4.6.jar` to the existing `jvm-options` in `glassfish/domains/domain1/config/domain.xml`:
145145

146146
```xml
147147
...
148148
<java-config ...>
149149
<!--Edit the JVM options here-->
150150
<jvm-options>
151-
-javaagent:path/to/applicationinsights-agent-3.4.5.jar>
151+
-javaagent:path/to/applicationinsights-agent-3.4.6.jar>
152152
</jvm-options>
153153
...
154154
</java-config>
@@ -165,7 +165,7 @@ Java and Process Management > Process definition > Java Virtual Machine
165165
```
166166
In "Generic JVM arguments" add the following JVM argument:
167167
```
168-
-javaagent:path/to/applicationinsights-agent-3.4.5.jar
168+
-javaagent:path/to/applicationinsights-agent-3.4.6.jar
169169
```
170170
After that, save and restart the application server.
171171

@@ -174,7 +174,7 @@ After that, save and restart the application server.
174174

175175
Create a new file `jvm.options` in the server directory (for example `<openliberty>/usr/servers/defaultServer`), and add this line:
176176
```
177-
-javaagent:path/to/applicationinsights-agent-3.4.5.jar
177+
-javaagent:path/to/applicationinsights-agent-3.4.6.jar
178178
```
179179

180180
## Others

articles/azure-monitor/app/java-standalone-config.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Configuration options - Azure Monitor Application Insights for Java
33
description: This article shows you how to configure Azure Monitor Application Insights for Java.
44
ms.topic: conceptual
5-
ms.date: 12/05/2022
5+
ms.date: 12/07/2022
66
ms.devlang: java
77
ms.custom: devx-track-java
88
ms.reviewer: mmcc
@@ -31,14 +31,14 @@ You'll find more information and configuration options in the following sections
3131

3232
## Configuration file path
3333

34-
By default, Application Insights Java 3.x expects the configuration file to be named `applicationinsights.json`, and to be located in the same directory as `applicationinsights-agent-3.4.5.jar`.
34+
By default, Application Insights Java 3.x expects the configuration file to be named `applicationinsights.json`, and to be located in the same directory as `applicationinsights-agent-3.4.6.jar`.
3535

3636
You can specify your own configuration file path by using one of these two options:
3737

3838
* `APPLICATIONINSIGHTS_CONFIGURATION_FILE` environment variable
3939
* `applicationinsights.configuration.file` Java system property
4040

41-
If you specify a relative path, it will be resolved relative to the directory where `applicationinsights-agent-3.4.5.jar` is located.
41+
If you specify a relative path, it will be resolved relative to the directory where `applicationinsights-agent-3.4.6.jar` is located.
4242

4343
Alternatively, instead of using a configuration file, you can specify the entire _content_ of the JSON configuration via the environment variable `APPLICATIONINSIGHTS_CONFIGURATION_CONTENT`.
4444

@@ -61,7 +61,7 @@ Or you can set the connection string by using the Java system property `applicat
6161

6262
You can also set the connection string by specifying a file to load the connection string from.
6363

64-
If you specify a relative path, it's resolved relative to the directory where `applicationinsights-agent-3.4.5.jar` is located.
64+
If you specify a relative path, it's resolved relative to the directory where `applicationinsights-agent-3.4.6.jar` is located.
6565

6666
```json
6767
{
@@ -752,7 +752,7 @@ In the preceding configuration example:
752752

753753
* `level` can be one of `OFF`, `ERROR`, `WARN`, `INFO`, `DEBUG`, or `TRACE`.
754754
* `path` can be an absolute or relative path. Relative paths are resolved against the directory where
755-
`applicationinsights-agent-3.4.5.jar` is located.
755+
`applicationinsights-agent-3.4.6.jar` is located.
756756

757757
Starting from version 3.0.2, you can also set the self-diagnostics `level` by using the environment variable
758758
`APPLICATIONINSIGHTS_SELF_DIAGNOSTICS_LEVEL`. It then takes precedence over the self-diagnostics level specified in the JSON configuration.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Upgrading from 2.x - Azure Monitor Application Insights Java
33
description: Upgrading from Azure Monitor Application Insights Java 2.x
44
ms.topic: conceptual
5-
ms.date: 12/05/2022
5+
ms.date: 12/07/2022
66
ms.devlang: java
77
ms.custom: devx-track-java
88
ms.reviewer: mmcc
@@ -32,7 +32,7 @@ auto-instrumentation which is provided by the 3.x Java agent.
3232
Add the 3.x Java agent to your JVM command-line args, for example
3333

3434
```
35-
-javaagent:path/to/applicationinsights-agent-3.4.5.jar
35+
-javaagent:path/to/applicationinsights-agent-3.4.6.jar
3636
```
3737

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

0 commit comments

Comments
 (0)