Skip to content

Commit e5ceba6

Browse files
Update the applicationinsights-java version to 3.4.12
1 parent cfa8475 commit e5ceba6

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: 23 additions & 23 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: 04/06/2023
5+
ms.date: 04/21/2023
66
ms.devlang: java
77
ms.custom: devx-track-java
88
ms.reviewer: mmcc
@@ -24,16 +24,16 @@ For more information, see [Monitoring Azure Functions with Azure Monitor Applica
2424

2525
### Docker entry point
2626

27-
If you're using the *exec* form, add the parameter `-javaagent:"path/to/applicationinsights-agent-3.4.11.jar"` to the parameter list somewhere before the `"-jar"` parameter, for example:
27+
If you're using the *exec* form, add the parameter `-javaagent:"path/to/applicationinsights-agent-3.4.12.jar"` to the parameter list somewhere before the `"-jar"` parameter, for example:
2828

2929
```
30-
ENTRYPOINT ["java", "-javaagent:path/to/applicationinsights-agent-3.4.11.jar", "-jar", "<myapp.jar>"]
30+
ENTRYPOINT ["java", "-javaagent:path/to/applicationinsights-agent-3.4.12.jar", "-jar", "<myapp.jar>"]
3131
```
3232

33-
If you're using the *shell* form, add the JVM arg `-javaagent:"path/to/applicationinsights-agent-3.4.11.jar"` somewhere before `-jar`, for example:
33+
If you're using the *shell* form, add the JVM arg `-javaagent:"path/to/applicationinsights-agent-3.4.12.jar"` somewhere before `-jar`, for example:
3434

3535
```
36-
ENTRYPOINT java -javaagent:"path/to/applicationinsights-agent-3.4.11.jar" -jar <myapp.jar>
36+
ENTRYPOINT java -javaagent:"path/to/applicationinsights-agent-3.4.12.jar" -jar <myapp.jar>
3737
```
3838

3939

@@ -46,13 +46,13 @@ FROM ...
4646
4747
COPY target/*.jar app.jar
4848
49-
COPY agent/applicationinsights-agent-3.4.11.jar applicationinsights-agent-3.4.11.jar
49+
COPY agent/applicationinsights-agent-3.4.12.jar applicationinsights-agent-3.4.12.jar
5050
5151
COPY agent/applicationinsights.json applicationinsights.json
5252
5353
ENV APPLICATIONINSIGHTS_CONNECTION_STRING="CONNECTION-STRING"
5454
55-
ENTRYPOINT["java", "-javaagent:applicationinsights-agent-3.4.11.jar", "-jar", "app.jar"]
55+
ENTRYPOINT["java", "-javaagent:applicationinsights-agent-3.4.12.jar", "-jar", "app.jar"]
5656
```
5757

5858
### Third-party container images
@@ -73,18 +73,18 @@ For more information, see [Using Azure Monitor Application Insights with Spring
7373
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:
7474

7575
```
76-
JAVA_OPTS="$JAVA_OPTS -javaagent:path/to/applicationinsights-agent-3.4.11.jar"
76+
JAVA_OPTS="$JAVA_OPTS -javaagent:path/to/applicationinsights-agent-3.4.12.jar"
7777
```
7878

7979
#### Tomcat installed via download and unzip
8080

8181
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:
8282

8383
```
84-
CATALINA_OPTS="$CATALINA_OPTS -javaagent:path/to/applicationinsights-agent-3.4.11.jar"
84+
CATALINA_OPTS="$CATALINA_OPTS -javaagent:path/to/applicationinsights-agent-3.4.12.jar"
8585
```
8686

87-
If the file `<tomcat>/bin/setenv.sh` already exists, modify that file and add `-javaagent:path/to/applicationinsights-agent-3.4.11.jar` to `CATALINA_OPTS`.
87+
If the file `<tomcat>/bin/setenv.sh` already exists, modify that file and add `-javaagent:path/to/applicationinsights-agent-3.4.12.jar` to `CATALINA_OPTS`.
8888

8989
### Tomcat 8 (Windows)
9090

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

9595
```
96-
set CATALINA_OPTS=%CATALINA_OPTS% -javaagent:path/to/applicationinsights-agent-3.4.11.jar
96+
set CATALINA_OPTS=%CATALINA_OPTS% -javaagent:path/to/applicationinsights-agent-3.4.12.jar
9797
```
9898

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

101101
```
102-
set "CATALINA_OPTS=%CATALINA_OPTS% -javaagent:path/to/applicationinsights-agent-3.4.11.jar"
102+
set "CATALINA_OPTS=%CATALINA_OPTS% -javaagent:path/to/applicationinsights-agent-3.4.12.jar"
103103
```
104104

105-
If the file `<tomcat>/bin/setenv.bat` already exists, modify that file and add `-javaagent:path/to/applicationinsights-agent-3.4.11.jar` to `CATALINA_OPTS`.
105+
If the file `<tomcat>/bin/setenv.bat` already exists, modify that file and add `-javaagent:path/to/applicationinsights-agent-3.4.12.jar` to `CATALINA_OPTS`.
106106

107107
#### Run Tomcat as a Windows service
108108

109-
Locate the file `<tomcat>/bin/tomcat8w.exe`. Run that executable and add `-javaagent:path/to/applicationinsights-agent-3.4.11.jar` to the `Java Options` under the `Java` tab.
109+
Locate the file `<tomcat>/bin/tomcat8w.exe`. Run that executable and add `-javaagent:path/to/applicationinsights-agent-3.4.12.jar` to the `Java Options` under the `Java` tab.
110110

111111
### JBoss EAP 7
112112

113113
#### Standalone server
114114

115-
Add `-javaagent:path/to/applicationinsights-agent-3.4.11.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):
115+
Add `-javaagent:path/to/applicationinsights-agent-3.4.12.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):
116116

117117
```java ...
118-
JAVA_OPTS="-javaagent:path/to/applicationinsights-agent-3.4.11.jar -Xms1303m -Xmx1303m ..."
118+
JAVA_OPTS="-javaagent:path/to/applicationinsights-agent-3.4.12.jar -Xms1303m -Xmx1303m ..."
119119
...
120120
```
121121

122122
#### Domain server
123123

124-
Add `-javaagent:path/to/applicationinsights-agent-3.4.11.jar` to the existing `jvm-options` in `JBOSS_HOME/domain/configuration/host.xml`:
124+
Add `-javaagent:path/to/applicationinsights-agent-3.4.12.jar` to the existing `jvm-options` in `JBOSS_HOME/domain/configuration/host.xml`:
125125

126126
```xml
127127
...
@@ -131,7 +131,7 @@ Add `-javaagent:path/to/applicationinsights-agent-3.4.11.jar` to the existing `j
131131
<jvm-options>
132132
<option value="-server"/>
133133
<!--Add Java agent jar file here-->
134-
<option value="-javaagent:path/to/applicationinsights-agent-3.4.11.jar"/>
134+
<option value="-javaagent:path/to/applicationinsights-agent-3.4.12.jar"/>
135135
<option value="-XX:MetaspaceSize=96m"/>
136136
<option value="-XX:MaxMetaspaceSize=256m"/>
137137
</jvm-options>
@@ -170,19 +170,19 @@ Add these lines to `start.ini`:
170170

171171
```
172172
--exec
173-
-javaagent:path/to/applicationinsights-agent-3.4.11.jar
173+
-javaagent:path/to/applicationinsights-agent-3.4.12.jar
174174
```
175175

176176
### Payara 5
177177

178-
Add `-javaagent:path/to/applicationinsights-agent-3.4.11.jar` to the existing `jvm-options` in `glassfish/domains/domain1/config/domain.xml`:
178+
Add `-javaagent:path/to/applicationinsights-agent-3.4.12.jar` to the existing `jvm-options` in `glassfish/domains/domain1/config/domain.xml`:
179179

180180
```xml
181181
...
182182
<java-config ...>
183183
<!--Edit the JVM options here-->
184184
<jvm-options>
185-
-javaagent:path/to/applicationinsights-agent-3.4.11.jar>
185+
-javaagent:path/to/applicationinsights-agent-3.4.12.jar>
186186
</jvm-options>
187187
...
188188
</java-config>
@@ -201,7 +201,7 @@ Add `-javaagent:path/to/applicationinsights-agent-3.4.11.jar` to the existing `j
201201
1. In `Generic JVM arguments`, add the following JVM argument:
202202
203203
```
204-
-javaagent:path/to/applicationinsights-agent-3.4.11.jar
204+
-javaagent:path/to/applicationinsights-agent-3.4.12.jar
205205
```
206206
207207
1. Save and restart the application server.
@@ -211,7 +211,7 @@ Add `-javaagent:path/to/applicationinsights-agent-3.4.11.jar` to the existing `j
211211
Create a new file `jvm.options` in the server directory (for example, `<openliberty>/usr/servers/defaultServer`), and add this line:
212212
213213
```
214-
-javaagent:path/to/applicationinsights-agent-3.4.11.jar
214+
-javaagent:path/to/applicationinsights-agent-3.4.12.jar
215215
```
216216
217217
### 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: 03/31/2023
5+
ms.date: 04/21/2023
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.11.jar"` somewhere before `-jar`, for example:
16+
Add the JVM arg `-javaagent:"path/to/applicationinsights-agent-3.4.12.jar"` somewhere before `-jar`, for example:
1717

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

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

3232
```
33-
ENTRYPOINT java -javaagent:"path/to/applicationinsights-agent-3.4.11.jar" -jar <myapp.jar>
33+
ENTRYPOINT java -javaagent:"path/to/applicationinsights-agent-3.4.12.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.11</version>
48+
<version>3.4.12</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: 03/31/2023
5+
ms.date: 04/21/2023
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.11.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.12.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.11.jar` is located.
41+
If you specify a relative path, it will be resolved relative to the directory where `applicationinsights-agent-3.4.12.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.11.jar` is located.
64+
If you specify a relative path, it's resolved relative to the directory where `applicationinsights-agent-3.4.12.jar` is located.
6565

6666
```json
6767
{
@@ -340,7 +340,7 @@ and add `applicationinsights-core` to your application:
340340
<dependency>
341341
<groupId>com.microsoft.azure</groupId>
342342
<artifactId>applicationinsights-core</artifactId>
343-
<version>3.4.11</version>
343+
<version>3.4.12</version>
344344
</dependency>
345345
```
346346

@@ -812,7 +812,7 @@ In the preceding configuration example:
812812

813813
* `level` can be one of `OFF`, `ERROR`, `WARN`, `INFO`, `DEBUG`, or `TRACE`.
814814
* `path` can be an absolute or relative path. Relative paths are resolved against the directory where
815-
`applicationinsights-agent-3.4.11.jar` is located.
815+
`applicationinsights-agent-3.4.12.jar` is located.
816816

817817
Starting from version 3.0.2, you can also set the self-diagnostics `level` by using the environment variable
818818
`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: 03/31/2023
5+
ms.date: 04/21/2023
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.11.jar
35+
-javaagent:path/to/applicationinsights-agent-3.4.12.jar
3636
```
3737

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

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

Lines changed: 5 additions & 5 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: 03/31/2023
5+
ms.date: 04/21/2023
66
ms.devlang: csharp, javascript, typescript, python
77
ms.reviewer: mmcc
88
---
@@ -79,7 +79,7 @@ dotnet add package --prerelease Azure.Monitor.OpenTelemetry.Exporter -s https://
7979

8080
#### [Java](#tab/java)
8181

82-
Download the [applicationinsights-agent-3.4.11.jar](https://github.com/microsoft/ApplicationInsights-Java/releases/download/3.4.11/applicationinsights-agent-3.4.11.jar) file.
82+
Download the [applicationinsights-agent-3.4.12.jar](https://github.com/microsoft/ApplicationInsights-Java/releases/download/3.4.12/applicationinsights-agent-3.4.12.jar) file.
8383

8484
> [!WARNING]
8585
>
@@ -181,7 +181,7 @@ public class Program
181181

182182
Java auto-instrumentation is enabled through configuration changes; no code changes are required.
183183

184-
Point the JVM to the jar file by adding `-javaagent:"path/to/applicationinsights-agent-3.4.11.jar"` to your application's JVM args.
184+
Point the JVM to the jar file by adding `-javaagent:"path/to/applicationinsights-agent-3.4.12.jar"` to your application's JVM args.
185185

186186
> [!TIP]
187187
> For scenario-specific guidance, see [Get Started (Supplemental)](./java-get-started-supplemental.md).
@@ -301,7 +301,7 @@ Use one of the following two ways to point the jar file to your Application Insi
301301
APPLICATIONINSIGHTS_CONNECTION_STRING=<Your Connection String>
302302
```
303303

304-
- Create a configuration file named `applicationinsights.json`, and place it in the same directory as `applicationinsights-agent-3.4.11.jar` with the following content:
304+
- Create a configuration file named `applicationinsights.json`, and place it in the same directory as `applicationinsights-agent-3.4.12.jar` with the following content:
305305

306306
```json
307307
{
@@ -1454,7 +1454,7 @@ This is not available in .NET.
14541454
<dependency>
14551455
<groupId>com.microsoft.azure</groupId>
14561456
<artifactId>applicationinsights-core</artifactId>
1457-
<version>3.4.11</version>
1457+
<version>3.4.12</version>
14581458
</dependency>
14591459
```
14601460

0 commit comments

Comments
 (0)