Skip to content

Commit 7890224

Browse files
Merge pull request #249825 from AaronMaxwell/update-applicationinsights-java-to-3.4.16
Update the applicationinsights-java version to 3.4.16
2 parents c26c37d + 79e7c71 commit 7890224

File tree

5 files changed

+44
-44
lines changed

5 files changed

+44
-44
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: 07/20/2023
5+
ms.date: 08/30/2023
66
ms.devlang: java
77
ms.custom: devx-track-java, devx-track-extended-java
88
ms.reviewer: mmcc
@@ -28,16 +28,16 @@ For more information, see [Use Application Insights Java In-Process Agent in Azu
2828

2929
### Docker entry point
3030

31-
If you're using the *exec* form, add the parameter `-javaagent:"path/to/applicationinsights-agent-3.4.15.jar"` to the parameter list somewhere before the `"-jar"` parameter, for example:
31+
If you're using the *exec* form, add the parameter `-javaagent:"path/to/applicationinsights-agent-3.4.16.jar"` to the parameter list somewhere before the `"-jar"` parameter, for example:
3232

3333
```
34-
ENTRYPOINT ["java", "-javaagent:path/to/applicationinsights-agent-3.4.15.jar", "-jar", "<myapp.jar>"]
34+
ENTRYPOINT ["java", "-javaagent:path/to/applicationinsights-agent-3.4.16.jar", "-jar", "<myapp.jar>"]
3535
```
3636

37-
If you're using the *shell* form, add the JVM arg `-javaagent:"path/to/applicationinsights-agent-3.4.15.jar"` somewhere before `-jar`, for example:
37+
If you're using the *shell* form, add the JVM arg `-javaagent:"path/to/applicationinsights-agent-3.4.16.jar"` somewhere before `-jar`, for example:
3838

3939
```
40-
ENTRYPOINT java -javaagent:"path/to/applicationinsights-agent-3.4.15.jar" -jar <myapp.jar>
40+
ENTRYPOINT java -javaagent:"path/to/applicationinsights-agent-3.4.16.jar" -jar <myapp.jar>
4141
```
4242

4343

@@ -50,16 +50,16 @@ FROM ...
5050
5151
COPY target/*.jar app.jar
5252
53-
COPY agent/applicationinsights-agent-3.4.15.jar applicationinsights-agent-3.4.15.jar
53+
COPY agent/applicationinsights-agent-3.4.16.jar applicationinsights-agent-3.4.16.jar
5454
5555
COPY agent/applicationinsights.json applicationinsights.json
5656
5757
ENV APPLICATIONINSIGHTS_CONNECTION_STRING="CONNECTION-STRING"
5858
59-
ENTRYPOINT["java", "-javaagent:applicationinsights-agent-3.4.15.jar", "-jar", "app.jar"]
59+
ENTRYPOINT["java", "-javaagent:applicationinsights-agent-3.4.16.jar", "-jar", "app.jar"]
6060
```
6161

62-
In this example we have copied the `applicationinsights-agent-3.4.15.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.
62+
In this example we have copied the `applicationinsights-agent-3.4.16.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.
6363

6464
### Third-party container images
6565

@@ -81,18 +81,18 @@ The following sections show how to set the Application Insights Java agent path
8181
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:
8282

8383
```
84-
JAVA_OPTS="$JAVA_OPTS -javaagent:path/to/applicationinsights-agent-3.4.15.jar"
84+
JAVA_OPTS="$JAVA_OPTS -javaagent:path/to/applicationinsights-agent-3.4.16.jar"
8585
```
8686

8787
#### Tomcat installed via download and unzip
8888

8989
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:
9090

9191
```
92-
CATALINA_OPTS="$CATALINA_OPTS -javaagent:path/to/applicationinsights-agent-3.4.15.jar"
92+
CATALINA_OPTS="$CATALINA_OPTS -javaagent:path/to/applicationinsights-agent-3.4.16.jar"
9393
```
9494

95-
If the file `<tomcat>/bin/setenv.sh` already exists, modify that file and add `-javaagent:path/to/applicationinsights-agent-3.4.15.jar` to `CATALINA_OPTS`.
95+
If the file `<tomcat>/bin/setenv.sh` already exists, modify that file and add `-javaagent:path/to/applicationinsights-agent-3.4.16.jar` to `CATALINA_OPTS`.
9696

9797
### Tomcat 8 (Windows)
9898

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

103103
```
104-
set CATALINA_OPTS=%CATALINA_OPTS% -javaagent:path/to/applicationinsights-agent-3.4.15.jar
104+
set CATALINA_OPTS=%CATALINA_OPTS% -javaagent:path/to/applicationinsights-agent-3.4.16.jar
105105
```
106106

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

109109
```
110-
set "CATALINA_OPTS=%CATALINA_OPTS% -javaagent:path/to/applicationinsights-agent-3.4.15.jar"
110+
set "CATALINA_OPTS=%CATALINA_OPTS% -javaagent:path/to/applicationinsights-agent-3.4.16.jar"
111111
```
112112

113-
If the file `<tomcat>/bin/setenv.bat` already exists, modify that file and add `-javaagent:path/to/applicationinsights-agent-3.4.15.jar` to `CATALINA_OPTS`.
113+
If the file `<tomcat>/bin/setenv.bat` already exists, modify that file and add `-javaagent:path/to/applicationinsights-agent-3.4.16.jar` to `CATALINA_OPTS`.
114114

115115
#### Run Tomcat as a Windows service
116116

117-
Locate the file `<tomcat>/bin/tomcat8w.exe`. Run that executable and add `-javaagent:path/to/applicationinsights-agent-3.4.15.jar` to the `Java Options` under the `Java` tab.
117+
Locate the file `<tomcat>/bin/tomcat8w.exe`. Run that executable and add `-javaagent:path/to/applicationinsights-agent-3.4.16.jar` to the `Java Options` under the `Java` tab.
118118

119119
### JBoss EAP 7
120120

121121
#### Standalone server
122122

123-
Add `-javaagent:path/to/applicationinsights-agent-3.4.15.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):
123+
Add `-javaagent:path/to/applicationinsights-agent-3.4.16.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):
124124

125125
```java ...
126-
JAVA_OPTS="-javaagent:path/to/applicationinsights-agent-3.4.15.jar -Xms1303m -Xmx1303m ..."
126+
JAVA_OPTS="-javaagent:path/to/applicationinsights-agent-3.4.16.jar -Xms1303m -Xmx1303m ..."
127127
...
128128
```
129129

130130
#### Domain server
131131

132-
Add `-javaagent:path/to/applicationinsights-agent-3.4.15.jar` to the existing `jvm-options` in `JBOSS_HOME/domain/configuration/host.xml`:
132+
Add `-javaagent:path/to/applicationinsights-agent-3.4.16.jar` to the existing `jvm-options` in `JBOSS_HOME/domain/configuration/host.xml`:
133133

134134
```xml
135135
...
@@ -139,7 +139,7 @@ Add `-javaagent:path/to/applicationinsights-agent-3.4.15.jar` to the existing `j
139139
<jvm-options>
140140
<option value="-server"/>
141141
<!--Add Java agent jar file here-->
142-
<option value="-javaagent:path/to/applicationinsights-agent-3.4.15.jar"/>
142+
<option value="-javaagent:path/to/applicationinsights-agent-3.4.16.jar"/>
143143
<option value="-XX:MetaspaceSize=96m"/>
144144
<option value="-XX:MaxMetaspaceSize=256m"/>
145145
</jvm-options>
@@ -178,19 +178,19 @@ Add these lines to `start.ini`:
178178

179179
```
180180
--exec
181-
-javaagent:path/to/applicationinsights-agent-3.4.15.jar
181+
-javaagent:path/to/applicationinsights-agent-3.4.16.jar
182182
```
183183

184184
### Payara 5
185185

186-
Add `-javaagent:path/to/applicationinsights-agent-3.4.15.jar` to the existing `jvm-options` in `glassfish/domains/domain1/config/domain.xml`:
186+
Add `-javaagent:path/to/applicationinsights-agent-3.4.16.jar` to the existing `jvm-options` in `glassfish/domains/domain1/config/domain.xml`:
187187

188188
```xml
189189
...
190190
<java-config ...>
191191
<!--Edit the JVM options here-->
192192
<jvm-options>
193-
-javaagent:path/to/applicationinsights-agent-3.4.15.jar>
193+
-javaagent:path/to/applicationinsights-agent-3.4.16.jar>
194194
</jvm-options>
195195
...
196196
</java-config>
@@ -209,7 +209,7 @@ Add `-javaagent:path/to/applicationinsights-agent-3.4.15.jar` to the existing `j
209209
1. In `Generic JVM arguments`, add the following JVM argument:
210210
211211
```
212-
-javaagent:path/to/applicationinsights-agent-3.4.15.jar
212+
-javaagent:path/to/applicationinsights-agent-3.4.16.jar
213213
```
214214
215215
1. Save and restart the application server.
@@ -219,7 +219,7 @@ Add `-javaagent:path/to/applicationinsights-agent-3.4.15.jar` to the existing `j
219219
Create a new file `jvm.options` in the server directory (for example, `<openliberty>/usr/servers/defaultServer`), and add this line:
220220
221221
```
222-
-javaagent:path/to/applicationinsights-agent-3.4.15.jar
222+
-javaagent:path/to/applicationinsights-agent-3.4.16.jar
223223
```
224224
225225
### Others

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

Lines changed: 8 additions & 8 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: 08/11/2023
5+
ms.date: 08/30/2023
66
ms.devlang: java
77
ms.custom: devx-track-java, devx-track-extended-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.15.jar"` somewhere before `-jar`, for example:
16+
Add the JVM arg `-javaagent:"path/to/applicationinsights-agent-3.4.16.jar"` somewhere before `-jar`, for example:
1717

1818
```
19-
java -javaagent:"path/to/applicationinsights-agent-3.4.15.jar" -jar <myapp.jar>
19+
java -javaagent:"path/to/applicationinsights-agent-3.4.16.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.15.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.16.jar"` to the parameter list somewhere before the `"-jar"` parameter, for example:
2525

2626
```
27-
ENTRYPOINT ["java", "-javaagent:path/to/applicationinsights-agent-3.4.15.jar", "-jar", "<myapp.jar>"]
27+
ENTRYPOINT ["java", "-javaagent:path/to/applicationinsights-agent-3.4.16.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.15.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.16.jar"` somewhere before `-jar`, for example:
3131

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

3636
### Configuration
@@ -45,7 +45,7 @@ To enable Application Insights Java programmatically, you must add the following
4545
<dependency>
4646
<groupId>com.microsoft.azure</groupId>
4747
<artifactId>applicationinsights-runtime-attach</artifactId>
48-
<version>3.4.15</version>
48+
<version>3.4.16</version>
4949
</dependency>
5050
```
5151

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: 08/11/2023
5+
ms.date: 08/30/2023
66
ms.devlang: java
77
ms.custom: devx-track-java, devx-track-extended-java
88
ms.reviewer: mmcc
@@ -31,14 +31,14 @@ More information and configuration options are provided in the following section
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.15.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.16.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's resolved relative to the directory where `applicationinsights-agent-3.4.15.jar` is located.
41+
If you specify a relative path, it's resolved relative to the directory where `applicationinsights-agent-3.4.16.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.15.jar` is located.
64+
If you specify a relative path, it's resolved relative to the directory where `applicationinsights-agent-3.4.16.jar` is located.
6565

6666
```json
6767
{
@@ -328,7 +328,7 @@ and add `applicationinsights-core` to your application:
328328
<dependency>
329329
<groupId>com.microsoft.azure</groupId>
330330
<artifactId>applicationinsights-core</artifactId>
331-
<version>3.4.15</version>
331+
<version>3.4.16</version>
332332
</dependency>
333333
```
334334

@@ -851,7 +851,7 @@ In the preceding configuration example:
851851

852852
* `level` can be one of `OFF`, `ERROR`, `WARN`, `INFO`, `DEBUG`, or `TRACE`.
853853
* `path` can be an absolute or relative path. Relative paths are resolved against the directory where
854-
`applicationinsights-agent-3.4.15.jar` is located.
854+
`applicationinsights-agent-3.4.16.jar` is located.
855855

856856
Starting from version 3.0.2, you can also set the self-diagnostics `level` by using the environment variable
857857
`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: 07/20/2023
5+
ms.date: 08/30/2023
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 JVM command-line args, for example
3030

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

3535
If you're using the Application Insights 2.x Java agent, just replace your existing `-javaagent:...` with the aforementioned 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: 08/11/2023
5+
ms.date: 08/30/2023
66
ms.devlang: csharp, javascript, typescript, python
77
ms.custom: devx-track-dotnet, devx-track-extended-java, devx-track-python
88
ms.reviewer: mmcc
@@ -87,7 +87,7 @@ dotnet add package --prerelease Azure.Monitor.OpenTelemetry.Exporter
8787

8888
#### [Java](#tab/java)
8989

90-
Download the [applicationinsights-agent-3.4.15.jar](https://github.com/microsoft/ApplicationInsights-Java/releases/download/3.4.15/applicationinsights-agent-3.4.15.jar) file.
90+
Download the [applicationinsights-agent-3.4.16.jar](https://github.com/microsoft/ApplicationInsights-Java/releases/download/3.4.16/applicationinsights-agent-3.4.16.jar) file.
9191

9292
> [!WARNING]
9393
>
@@ -180,7 +180,7 @@ var loggerFactory = LoggerFactory.Create(builder =>
180180

181181
Java autoinstrumentation is enabled through configuration changes; no code changes are required.
182182

183-
Point the JVM to the jar file by adding `-javaagent:"path/to/applicationinsights-agent-3.4.15.jar"` to your application's JVM args.
183+
Point the JVM to the jar file by adding `-javaagent:"path/to/applicationinsights-agent-3.4.16.jar"` to your application's JVM args.
184184

185185
> [!TIP]
186186
> For scenario-specific guidance, see [Get Started (Supplemental)](./java-get-started-supplemental.md).
@@ -243,7 +243,7 @@ To paste your Connection String, select from the following options:
243243

244244
B. Set via Configuration File - Java Only (Recommended)
245245

246-
Create a configuration file named `applicationinsights.json`, and place it in the same directory as `applicationinsights-agent-3.4.15.jar` with the following content:
246+
Create a configuration file named `applicationinsights.json`, and place it in the same directory as `applicationinsights-agent-3.4.16.jar` with the following content:
247247

248248
```json
249249
{

0 commit comments

Comments
 (0)