Skip to content

Commit bc02574

Browse files
Merge pull request #282069 from AaronMaxwell/update-applicationinsights-java-to-3.5.4
Update the applicationinsights-java version to 3.5.4
2 parents bb6bc71 + 762cdc4 commit bc02574

File tree

5 files changed

+41
-41
lines changed

5 files changed

+41
-41
lines changed

articles/azure-monitor/app/java-get-started-supplemental.md

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Application Insights with containers
33
description: This article shows you how to set up Application Insights.
44
ms.topic: conceptual
5-
ms.date: 06/04/2024
5+
ms.date: 07/29/2024
66
ms.devlang: java
77
ms.custom: devx-track-java, devx-track-extended-java
88
ms.reviewer: mmcc
@@ -31,16 +31,16 @@ For more information, see [Use Application Insights Java In-Process Agent in Azu
3131
3232
### Docker entry point
3333

34-
If you're using the *exec* form, add the parameter `-javaagent:"path/to/applicationinsights-agent-3.5.3.jar"` to the parameter list somewhere before the `"-jar"` parameter, for example:
34+
If you're using the *exec* form, add the parameter `-javaagent:"path/to/applicationinsights-agent-3.5.4.jar"` to the parameter list somewhere before the `"-jar"` parameter, for example:
3535

3636
```dockerfile
37-
ENTRYPOINT ["java", "-javaagent:path/to/applicationinsights-agent-3.5.3.jar", "-jar", "<myapp.jar>"]
37+
ENTRYPOINT ["java", "-javaagent:path/to/applicationinsights-agent-3.5.4.jar", "-jar", "<myapp.jar>"]
3838
```
3939

40-
If you're using the *shell* form, add the Java Virtual Machine (JVM) arg `-javaagent:"path/to/applicationinsights-agent-3.5.3.jar"` somewhere before `-jar`, for example:
40+
If you're using the *shell* form, add the Java Virtual Machine (JVM) arg `-javaagent:"path/to/applicationinsights-agent-3.5.4.jar"` somewhere before `-jar`, for example:
4141

4242
```dockerfile
43-
ENTRYPOINT java -javaagent:"path/to/applicationinsights-agent-3.5.3.jar" -jar <myapp.jar>
43+
ENTRYPOINT java -javaagent:"path/to/applicationinsights-agent-3.5.4.jar" -jar <myapp.jar>
4444
```
4545

4646

@@ -53,16 +53,16 @@ FROM ...
5353

5454
COPY target/*.jar app.jar
5555

56-
COPY agent/applicationinsights-agent-3.5.3.jar applicationinsights-agent-3.5.3.jar
56+
COPY agent/applicationinsights-agent-3.5.4.jar applicationinsights-agent-3.5.4.jar
5757

5858
COPY agent/applicationinsights.json applicationinsights.json
5959

6060
ENV APPLICATIONINSIGHTS_CONNECTION_STRING="CONNECTION-STRING"
6161

62-
ENTRYPOINT["java", "-javaagent:applicationinsights-agent-3.5.3.jar", "-jar", "app.jar"]
62+
ENTRYPOINT["java", "-javaagent:applicationinsights-agent-3.5.4.jar", "-jar", "app.jar"]
6363
```
6464

65-
In this example, you copy the `applicationinsights-agent-3.5.3.jar` and `applicationinsights.json` files from an `agent` folder (you can choose any folder of your machine). These two files have to be in the same folder in the Docker container.
65+
In this example, you copy the `applicationinsights-agent-3.5.4.jar` and `applicationinsights.json` files from an `agent` folder (you can choose any folder of your machine). These two files have to be in the same folder in the Docker container.
6666

6767
### Partner container images
6868

@@ -84,18 +84,18 @@ For information on setting up the Application Insights Java agent, see [Enabling
8484
If you installed Tomcat via `apt-get` or `yum`, you should have a file `/etc/tomcat8/tomcat8.conf`. Add this line to the end of that file:
8585

8686
```console
87-
JAVA_OPTS="$JAVA_OPTS -javaagent:path/to/applicationinsights-agent-3.5.3.jar"
87+
JAVA_OPTS="$JAVA_OPTS -javaagent:path/to/applicationinsights-agent-3.5.4.jar"
8888
```
8989

9090
#### Tomcat installed via download and unzip
9191

9292
If you installed Tomcat via download and unzip from [https://tomcat.apache.org](https://tomcat.apache.org), 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:
9393

9494
```console
95-
CATALINA_OPTS="$CATALINA_OPTS -javaagent:path/to/applicationinsights-agent-3.5.3.jar"
95+
CATALINA_OPTS="$CATALINA_OPTS -javaagent:path/to/applicationinsights-agent-3.5.4.jar"
9696
```
9797

98-
If the file `<tomcat>/bin/setenv.sh` already exists, modify that file and add `-javaagent:path/to/applicationinsights-agent-3.5.3.jar` to `CATALINA_OPTS`.
98+
If the file `<tomcat>/bin/setenv.sh` already exists, modify that file and add `-javaagent:path/to/applicationinsights-agent-3.5.4.jar` to `CATALINA_OPTS`.
9999

100100
### Tomcat 8 (Windows)
101101

@@ -104,37 +104,37 @@ If the file `<tomcat>/bin/setenv.sh` already exists, modify that file and add `-
104104
Locate the file `<tomcat>/bin/catalina.bat`. Create a new file in the same directory named `<tomcat>/bin/setenv.bat` with the following content:
105105

106106
```console
107-
set CATALINA_OPTS=%CATALINA_OPTS% -javaagent:path/to/applicationinsights-agent-3.5.3.jar
107+
set CATALINA_OPTS=%CATALINA_OPTS% -javaagent:path/to/applicationinsights-agent-3.5.4.jar
108108
```
109109

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

112112
```console
113-
set "CATALINA_OPTS=%CATALINA_OPTS% -javaagent:path/to/applicationinsights-agent-3.5.3.jar"
113+
set "CATALINA_OPTS=%CATALINA_OPTS% -javaagent:path/to/applicationinsights-agent-3.5.4.jar"
114114
```
115115

116-
If the file `<tomcat>/bin/setenv.bat` already exists, modify that file and add `-javaagent:path/to/applicationinsights-agent-3.5.3.jar` to `CATALINA_OPTS`.
116+
If the file `<tomcat>/bin/setenv.bat` already exists, modify that file and add `-javaagent:path/to/applicationinsights-agent-3.5.4.jar` to `CATALINA_OPTS`.
117117

118118
#### Run Tomcat as a Windows service
119119

120-
Locate the file `<tomcat>/bin/tomcat8w.exe`. Run that executable and add `-javaagent:path/to/applicationinsights-agent-3.5.3.jar` to the `Java Options` under the `Java` tab.
120+
Locate the file `<tomcat>/bin/tomcat8w.exe`. Run that executable and add `-javaagent:path/to/applicationinsights-agent-3.5.4.jar` to the `Java Options` under the `Java` tab.
121121

122122
### JBoss Enterprise Application Platform 7
123123

124124
In Red Hat JBoss Enterprise Application Platform (EAP) 7, you can set up a standalone server or a domain server.
125125

126126
#### Standalone server
127127

128-
Add `-javaagent:path/to/applicationinsights-agent-3.5.3.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):
128+
Add `-javaagent:path/to/applicationinsights-agent-3.5.4.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):
129129

130130
```java ...
131-
JAVA_OPTS="-javaagent:path/to/applicationinsights-agent-3.5.3.jar -Xms1303m -Xmx1303m ..."
131+
JAVA_OPTS="-javaagent:path/to/applicationinsights-agent-3.5.4.jar -Xms1303m -Xmx1303m ..."
132132
...
133133
```
134134

135135
#### Domain server
136136

137-
Add `-javaagent:path/to/applicationinsights-agent-3.5.3.jar` to the existing `jvm-options` in `JBOSS_HOME/domain/configuration/host.xml`:
137+
Add `-javaagent:path/to/applicationinsights-agent-3.5.4.jar` to the existing `jvm-options` in `JBOSS_HOME/domain/configuration/host.xml`:
138138

139139
```xml
140140
...
@@ -144,7 +144,7 @@ Add `-javaagent:path/to/applicationinsights-agent-3.5.3.jar` to the existing `jv
144144
<jvm-options>
145145
<option value="-server"/>
146146
<!--Add Java agent jar file here-->
147-
<option value="-javaagent:path/to/applicationinsights-agent-3.5.3.jar"/>
147+
<option value="-javaagent:path/to/applicationinsights-agent-3.5.4.jar"/>
148148
<option value="-XX:MetaspaceSize=96m"/>
149149
<option value="-XX:MaxMetaspaceSize=256m"/>
150150
</jvm-options>
@@ -183,19 +183,19 @@ Add these lines to `start.ini`:
183183

184184
```console
185185
--exec
186-
-javaagent:path/to/applicationinsights-agent-3.5.3.jar
186+
-javaagent:path/to/applicationinsights-agent-3.5.4.jar
187187
```
188188

189189
### Payara 5
190190

191-
Add `-javaagent:path/to/applicationinsights-agent-3.5.3.jar` to the existing `jvm-options` in `glassfish/domains/domain1/config/domain.xml`:
191+
Add `-javaagent:path/to/applicationinsights-agent-3.5.4.jar` to the existing `jvm-options` in `glassfish/domains/domain1/config/domain.xml`:
192192

193193
```xml
194194
...
195195
<java-config ...>
196196
<!--Edit the JVM options here-->
197197
<jvm-options>
198-
-javaagent:path/to/applicationinsights-agent-3.5.3.jar>
198+
-javaagent:path/to/applicationinsights-agent-3.5.4.jar>
199199
</jvm-options>
200200
...
201201
</java-config>
@@ -210,7 +210,7 @@ Add `-javaagent:path/to/applicationinsights-agent-3.5.3.jar` to the existing `jv
210210
1. In `Generic JVM arguments`, add the following JVM argument.
211211

212212
```console
213-
-javaagent:path/to/applicationinsights-agent-3.5.3.jar
213+
-javaagent:path/to/applicationinsights-agent-3.5.4.jar
214214
```
215215

216216
1. Save and restart the application server.
@@ -220,7 +220,7 @@ Add `-javaagent:path/to/applicationinsights-agent-3.5.3.jar` to the existing `jv
220220
Create a new file `jvm.options` in the server directory (for example, `<openliberty>/usr/servers/defaultServer`), and add this line:
221221

222222
```console
223-
-javaagent:path/to/applicationinsights-agent-3.5.3.jar
223+
-javaagent:path/to/applicationinsights-agent-3.5.4.jar
224224
```
225225

226226
### Others

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

Lines changed: 5 additions & 5 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: 06/04/2024
5+
ms.date: 07/29/2024
66
ms.devlang: java
77
ms.custom: devx-track-java, devx-track-extended-java
88
---
@@ -16,10 +16,10 @@ There are two options for enabling Application Insights Java with Spring Boot: J
1616

1717
## Enabling with JVM argument
1818

19-
Add the JVM arg `-javaagent:"path/to/applicationinsights-agent-3.5.3.jar"` somewhere before `-jar`, for example:
19+
Add the JVM arg `-javaagent:"path/to/applicationinsights-agent-3.5.4.jar"` somewhere before `-jar`, for example:
2020

2121
```console
22-
java -javaagent:"path/to/applicationinsights-agent-3.5.3.jar" -jar <myapp.jar>
22+
java -javaagent:"path/to/applicationinsights-agent-3.5.4.jar" -jar <myapp.jar>
2323
```
2424

2525
### Spring Boot via Docker entry point
@@ -38,7 +38,7 @@ To enable Application Insights Java programmatically, you must add the following
3838
<dependency>
3939
<groupId>com.microsoft.azure</groupId>
4040
<artifactId>applicationinsights-runtime-attach</artifactId>
41-
<version>3.5.3</version>
41+
<version>3.5.4</version>
4242
</dependency>
4343
```
4444

@@ -113,7 +113,7 @@ First, add the `applicationinsights-core` dependency:
113113
<dependency>
114114
<groupId>com.microsoft.azure</groupId>
115115
<artifactId>applicationinsights-core</artifactId>
116-
<version>3.5.3</version>
116+
<version>3.5.4</version>
117117
</dependency>
118118
```
119119

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

Lines changed: 6 additions & 6 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: 06/04/2024
5+
ms.date: 07/29/2024
66
ms.devlang: java
77
ms.custom: devx-track-java, devx-track-extended-java
88
ms.reviewer: mmcc
@@ -30,14 +30,14 @@ More information and configuration options are provided in the following section
3030

3131
## Configuration file path
3232

33-
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.5.3.jar`.
33+
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.5.4.jar`.
3434

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

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

40-
If you specify a relative path, it resolves relative to the directory where `applicationinsights-agent-3.5.3.jar` is located.
40+
If you specify a relative path, it resolves relative to the directory where `applicationinsights-agent-3.5.4.jar` is located.
4141

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

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

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

63-
If you specify a relative path, it resolves relative to the directory where `applicationinsights-agent-3.5.3.jar` is located.
63+
If you specify a relative path, it resolves relative to the directory where `applicationinsights-agent-3.5.4.jar` is located.
6464

6565
```json
6666
{
@@ -326,7 +326,7 @@ Add `applicationinsights-core` to your application:
326326
<dependency>
327327
<groupId>com.microsoft.azure</groupId>
328328
<artifactId>applicationinsights-core</artifactId>
329-
<version>3.5.3</version>
329+
<version>3.5.4</version>
330330
</dependency>
331331
```
332332

@@ -902,7 +902,7 @@ In the preceding configuration example:
902902

903903
* `level` can be one of `OFF`, `ERROR`, `WARN`, `INFO`, `DEBUG`, or `TRACE`.
904904
* `path` can be an absolute or relative path. Relative paths are resolved against the directory where
905-
`applicationinsights-agent-3.5.3.jar` is located.
905+
`applicationinsights-agent-3.5.4.jar` is located.
906906

907907
Starting from version 3.0.2, you can also set the self-diagnostics `level` by using the environment variable
908908
`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: 06/04/2024
5+
ms.date: 07/29/2024
66
ms.devlang: java
77
ms.custom: devx-track-java, devx-track-extended-java
88
ms.reviewer: mmcc
@@ -29,7 +29,7 @@ There are typically no code changes when upgrading to 3.x. The 3.x SDK dependenc
2929
Add the 3.x Java agent to your Java Virtual Machine (JVM) command-line args, for example:
3030

3131
```
32-
-javaagent:path/to/applicationinsights-agent-3.5.3.jar
32+
-javaagent:path/to/applicationinsights-agent-3.5.4.jar
3333
```
3434

3535
If you're using the Application Insights 2.x Java agent, just replace your existing `-javaagent:...` with the previous example.

articles/azure-monitor/app/opentelemetry-enable.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Enable Azure Monitor OpenTelemetry for .NET, Java, Node.js, and Python applications
33
description: This article provides guidance on how to enable Azure Monitor on applications by using OpenTelemetry.
44
ms.topic: conceptual
5-
ms.date: 06/04/2024
5+
ms.date: 07/29/2024
66
ms.devlang: csharp
77
# ms.devlang: csharp, javascript, typescript, python
88
ms.custom: devx-track-dotnet, devx-track-extended-java, devx-track-python
@@ -97,7 +97,7 @@ dotnet add package Azure.Monitor.OpenTelemetry.Exporter
9797

9898
#### [Java](#tab/java)
9999

100-
Download the [applicationinsights-agent-3.5.3.jar](https://github.com/microsoft/ApplicationInsights-Java/releases/download/3.5.3/applicationinsights-agent-3.5.3.jar) file.
100+
Download the [applicationinsights-agent-3.5.4.jar](https://github.com/microsoft/ApplicationInsights-Java/releases/download/3.5.4/applicationinsights-agent-3.5.4.jar) file.
101101

102102
> [!WARNING]
103103
>
@@ -217,7 +217,7 @@ var loggerFactory = LoggerFactory.Create(builder =>
217217

218218
Java autoinstrumentation is enabled through configuration changes; no code changes are required.
219219

220-
Point the Java virtual machine (JVM) to the jar file by adding `-javaagent:"path/to/applicationinsights-agent-3.5.3.jar"` to your application's JVM args.
220+
Point the Java virtual machine (JVM) to the jar file by adding `-javaagent:"path/to/applicationinsights-agent-3.5.4.jar"` to your application's JVM args.
221221

222222
> [!TIP]
223223
> Sampling is enabled by default at a rate of 5 requests per second, aiding in cost management. Telemetry data may be missing in scenarios exceeding this rate. For more information on modifying sampling configuration, see [sampling overrides](./java-standalone-sampling-overrides.md).
@@ -287,7 +287,7 @@ To paste your Connection String, select from the following options:
287287

288288
B. Set via Configuration File - Java Only (Recommended)
289289

290-
Create a configuration file named `applicationinsights.json`, and place it in the same directory as `applicationinsights-agent-3.5.3.jar` with the following content:
290+
Create a configuration file named `applicationinsights.json`, and place it in the same directory as `applicationinsights-agent-3.5.4.jar` with the following content:
291291

292292
```json
293293
{

0 commit comments

Comments
 (0)