Skip to content

Commit 0bf6ce7

Browse files
authored
Merge pull request #205589 from heyams/heya/3.3.1
Update java agent to 3.3.1
2 parents 23d4392 + 7910ef7 commit 0bf6ce7

File tree

4 files changed

+38
-38
lines changed

4 files changed

+38
-38
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ 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.3.0.jar](https://github.com/microsoft/ApplicationInsights-Java/releases/download/3.3.0/applicationinsights-agent-3.3.0.jar) file.
33+
Download the [applicationinsights-agent-3.3.1.jar](https://github.com/microsoft/ApplicationInsights-Java/releases/download/3.3.1/applicationinsights-agent-3.3.1.jar) file.
3434

3535
> [!WARNING]
3636
>
37-
> If you're upgrading from 3.2.x to 3.3.0:
37+
> If you're upgrading from 3.2.x to 3.3.1:
3838
>
39-
> - Starting from 3.3.0, `LoggingLevel` is not captured by default as part of Traces' custom dimension since that data is already captured in the `SeverityLevel` field. For details on how to re-enable this if needed, please see the [config options](./java-standalone-config.md#logginglevel)
39+
> - Starting from 3.3.1, `LoggingLevel` is not captured by default as part of Traces' custom dimension since that data is already captured in the `SeverityLevel` field. For details on how to re-enable this if needed, please see the [config options](./java-standalone-config.md#logginglevel)
4040
> - Exception records are no longer recorded for failed dependencies, they are only recorded for failed requests.
4141
>
4242
> If you're upgrading from 3.1.x:
@@ -56,7 +56,7 @@ Download the [applicationinsights-agent-3.3.0.jar](https://github.com/microsoft/
5656

5757
#### Point the JVM to the jar file
5858

59-
Add `-javaagent:"path/to/applicationinsights-agent-3.3.0.jar"` to your application's JVM args.
59+
Add `-javaagent:"path/to/applicationinsights-agent-3.3.1.jar"` to your application's JVM args.
6060

6161
> [!TIP]
6262
> For help with configuring your application's JVM args, see [Tips for updating your JVM args](./java-standalone-arguments.md).
@@ -74,7 +74,7 @@ Add `-javaagent:"path/to/applicationinsights-agent-3.3.0.jar"` to your applicati
7474
APPLICATIONINSIGHTS_CONNECTION_STRING = <Copy connection string from Application Insights Resource Overview>
7575
```
7676

77-
- Or you can create a configuration file named `applicationinsights.json`. Place it in the same directory as `applicationinsights-agent-3.3.0.jar` with the following content:
77+
- Or you can create a configuration file named `applicationinsights.json`. Place it in the same directory as `applicationinsights-agent-3.3.1.jar` with the following content:
7878

7979
```json
8080
{

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,24 +15,24 @@ You can enable the Azure Monitor Application Insights agent for Java by adding a
1515

1616
### Usual case
1717

18-
Add the JVM arg `-javaagent:"path/to/applicationinsights-agent-3.3.0.jar"` somewhere before `-jar`, for example:
18+
Add the JVM arg `-javaagent:"path/to/applicationinsights-agent-3.3.1.jar"` somewhere before `-jar`, for example:
1919

2020
```
21-
java -javaagent:"path/to/applicationinsights-agent-3.3.0.jar" -jar <myapp.jar>
21+
java -javaagent:"path/to/applicationinsights-agent-3.3.1.jar" -jar <myapp.jar>
2222
```
2323

2424
### Spring Boot via Docker entry point
2525

26-
If you're using the *exec* form, add the parameter `-javaagent:"path/to/applicationinsights-agent-3.3.0.jar"` to the parameter list somewhere before the `"-jar"` parameter, for example:
26+
If you're using the *exec* form, add the parameter `-javaagent:"path/to/applicationinsights-agent-3.3.1.jar"` to the parameter list somewhere before the `"-jar"` parameter, for example:
2727

2828
```
29-
ENTRYPOINT ["java", "-javaagent:path/to/applicationinsights-agent-3.3.0.jar", "-jar", "<myapp.jar>"]
29+
ENTRYPOINT ["java", "-javaagent:path/to/applicationinsights-agent-3.3.1.jar", "-jar", "<myapp.jar>"]
3030
```
3131

32-
If you're using the *shell* form, add the JVM arg `-javaagent:"path/to/applicationinsights-agent-3.3.0.jar"` somewhere before `-jar`, for example:
32+
If you're using the *shell* form, add the JVM arg `-javaagent:"path/to/applicationinsights-agent-3.3.1.jar"` somewhere before `-jar`, for example:
3333

3434
```
35-
ENTRYPOINT java -javaagent:"path/to/applicationinsights-agent-3.3.0.jar" -jar <myapp.jar>
35+
ENTRYPOINT java -javaagent:"path/to/applicationinsights-agent-3.3.1.jar" -jar <myapp.jar>
3636
```
3737

3838
## Programmatic configuration
@@ -42,7 +42,7 @@ To use the programmatic configuration and attach the Application Insights agent
4242
<dependency>
4343
<groupId>com.microsoft.azure</groupId>
4444
<artifactId>applicationinsights-runtime-attach</artifactId>
45-
<version>3.3.0</version>
45+
<version>3.3.1</version>
4646
</dependency>
4747
```
4848

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

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,18 @@ Read the Spring Boot documentation [here](../app/java-in-process-agent.md).
2525
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:
2626

2727
```
28-
JAVA_OPTS="$JAVA_OPTS -javaagent:path/to/applicationinsights-agent-3.3.0.jar"
28+
JAVA_OPTS="$JAVA_OPTS -javaagent:path/to/applicationinsights-agent-3.3.1.jar"
2929
```
3030

3131
### Tomcat installed via download and unzip
3232

3333
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:
3434

3535
```
36-
CATALINA_OPTS="$CATALINA_OPTS -javaagent:path/to/applicationinsights-agent-3.3.0.jar"
36+
CATALINA_OPTS="$CATALINA_OPTS -javaagent:path/to/applicationinsights-agent-3.3.1.jar"
3737
```
3838

39-
If the file `<tomcat>/bin/setenv.sh` already exists, then modify that file and add `-javaagent:path/to/applicationinsights-agent-3.3.0.jar` to `CATALINA_OPTS`.
39+
If the file `<tomcat>/bin/setenv.sh` already exists, then modify that file and add `-javaagent:path/to/applicationinsights-agent-3.3.1.jar` to `CATALINA_OPTS`.
4040

4141

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

4848
```
49-
set CATALINA_OPTS=%CATALINA_OPTS% -javaagent:path/to/applicationinsights-agent-3.3.0.jar
49+
set CATALINA_OPTS=%CATALINA_OPTS% -javaagent:path/to/applicationinsights-agent-3.3.1.jar
5050
```
5151

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

5454
```
55-
set "CATALINA_OPTS=%CATALINA_OPTS% -javaagent:path/to/applicationinsights-agent-3.3.0.jar"
55+
set "CATALINA_OPTS=%CATALINA_OPTS% -javaagent:path/to/applicationinsights-agent-3.3.1.jar"
5656
```
5757

58-
If the file `<tomcat>/bin/setenv.bat` already exists, just modify that file and add `-javaagent:path/to/applicationinsights-agent-3.3.0.jar` to `CATALINA_OPTS`.
58+
If the file `<tomcat>/bin/setenv.bat` already exists, just modify that file and add `-javaagent:path/to/applicationinsights-agent-3.3.1.jar` to `CATALINA_OPTS`.
5959

6060
### Running Tomcat as a Windows service
6161

62-
Locate the file `<tomcat>/bin/tomcat8w.exe`. Run that executable and add `-javaagent:path/to/applicationinsights-agent-3.3.0.jar` to the `Java Options` under the `Java` tab.
62+
Locate the file `<tomcat>/bin/tomcat8w.exe`. Run that executable and add `-javaagent:path/to/applicationinsights-agent-3.3.1.jar` to the `Java Options` under the `Java` tab.
6363

6464

6565
## JBoss EAP 7
6666

6767
### Standalone server
6868

69-
Add `-javaagent:path/to/applicationinsights-agent-3.3.0.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):
69+
Add `-javaagent:path/to/applicationinsights-agent-3.3.1.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):
7070

7171
```java ...
72-
JAVA_OPTS="-javaagent:path/to/applicationinsights-agent-3.3.0.jar -Xms1303m -Xmx1303m ..."
72+
JAVA_OPTS="-javaagent:path/to/applicationinsights-agent-3.3.1.jar -Xms1303m -Xmx1303m ..."
7373
...
7474
```
7575

7676
### Domain server
7777

78-
Add `-javaagent:path/to/applicationinsights-agent-3.3.0.jar` to the existing `jvm-options` in `JBOSS_HOME/domain/configuration/host.xml`:
78+
Add `-javaagent:path/to/applicationinsights-agent-3.3.1.jar` to the existing `jvm-options` in `JBOSS_HOME/domain/configuration/host.xml`:
7979

8080
```xml
8181
...
@@ -85,7 +85,7 @@ Add `-javaagent:path/to/applicationinsights-agent-3.3.0.jar` to the existing `jv
8585
<jvm-options>
8686
<option value="-server"/>
8787
<!--Add Java agent jar file here-->
88-
<option value="-javaagent:path/to/applicationinsights-agent-3.3.0.jar"/>
88+
<option value="-javaagent:path/to/applicationinsights-agent-3.3.1.jar"/>
8989
<option value="-XX:MetaspaceSize=96m"/>
9090
<option value="-XX:MaxMetaspaceSize=256m"/>
9191
</jvm-options>
@@ -125,20 +125,20 @@ Add these lines to `start.ini`
125125

126126
```
127127
--exec
128-
-javaagent:path/to/applicationinsights-agent-3.3.0.jar
128+
-javaagent:path/to/applicationinsights-agent-3.3.1.jar
129129
```
130130

131131

132132
## Payara 5
133133

134-
Add `-javaagent:path/to/applicationinsights-agent-3.3.0.jar` to the existing `jvm-options` in `glassfish/domains/domain1/config/domain.xml`:
134+
Add `-javaagent:path/to/applicationinsights-agent-3.3.1.jar` to the existing `jvm-options` in `glassfish/domains/domain1/config/domain.xml`:
135135

136136
```xml
137137
...
138138
<java-config ...>
139139
<!--Edit the JVM options here-->
140140
<jvm-options>
141-
-javaagent:path/to/applicationinsights-agent-3.3.0.jar>
141+
-javaagent:path/to/applicationinsights-agent-3.3.1.jar>
142142
</jvm-options>
143143
...
144144
</java-config>
@@ -155,7 +155,7 @@ Java and Process Management > Process definition > Java Virtual Machine
155155
```
156156
In "Generic JVM arguments" add the following JVM argument:
157157
```
158-
-javaagent:path/to/applicationinsights-agent-3.3.0.jar
158+
-javaagent:path/to/applicationinsights-agent-3.3.1.jar
159159
```
160160
After that, save and restart the application server.
161161

@@ -164,7 +164,7 @@ After that, save and restart the application server.
164164

165165
Create a new file `jvm.options` in the server directory (for example `<openliberty>/usr/servers/defaultServer`), and add this line:
166166
```
167-
-javaagent:path/to/applicationinsights-agent-3.3.0.jar
167+
-javaagent:path/to/applicationinsights-agent-3.3.1.jar
168168
```
169169

170170
## Others

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@ You will find more details and additional configuration options below.
3232

3333
## Configuration file path
3434

35-
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.3.0.jar`.
35+
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.3.1.jar`.
3636

3737
You can specify your own configuration file path using either
3838

3939
* `APPLICATIONINSIGHTS_CONFIGURATION_FILE` environment variable, or
4040
* `applicationinsights.configuration.file` Java system property
4141

42-
If you specify a relative path, it will be resolved relative to the directory where `applicationinsights-agent-3.3.0.jar` is located.
42+
If you specify a relative path, it will be resolved relative to the directory where `applicationinsights-agent-3.3.1.jar` is located.
4343

4444
Alternatively, instead of using a configuration file, you can specify the entire _content_ of the json configuration
4545
via the environment variable `APPLICATIONINSIGHTS_CONFIGURATION_CONTENT`.
@@ -62,7 +62,7 @@ You can also set the connection string using the environment variable `APPLICATI
6262

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

65-
If you specify a relative path, it will be resolved relative to the directory where `applicationinsights-agent-3.3.0.jar` is located.
65+
If you specify a relative path, it will be resolved relative to the directory where `applicationinsights-agent-3.3.1.jar` is located.
6666

6767
```json
6868
{
@@ -247,7 +247,7 @@ Instrumentation key overrides allow you to override the [default instrumentation
247247

248248
## Cloud role name overrides (preview)
249249

250-
This feature is in preview, starting from 3.3.0.
250+
This feature is in preview, starting from 3.3.1.
251251

252252
Cloud role name overrides allow you to override the [default cloud role name](#cloud-role-name), for example:
253253
* Set one cloud role name for one http path prefix `/myapp1`.
@@ -344,7 +344,7 @@ These are the valid `level` values that you can specify in the `applicationinsig
344344
345345
### LoggingLevel
346346

347-
Starting from version 3.3.0, `LoggingLevel` is not captured by default as part of Traces' custom dimension since that data is aleady captured in the `SeverityLevel` field.
347+
Starting from version 3.3.1, `LoggingLevel` is not captured by default as part of Traces' custom dimension since that data is aleady captured in the `SeverityLevel` field.
348348

349349
If needed, you can re-enable the previous behavior:
350350

@@ -384,7 +384,7 @@ To disable auto-collection of Micrometer metrics (including Spring Boot Actuator
384384

385385
## HTTP headers
386386

387-
Starting from version 3.3.0, you can capture request and response headers on your server (request) telemetry:
387+
Starting from version 3.3.1, you can capture request and response headers on your server (request) telemetry:
388388

389389
```json
390390
{
@@ -430,7 +430,7 @@ Again, the header names are case-insensitive, and the examples above will be cap
430430

431431
By default, http server requests that result in 4xx response codes are captured as errors.
432432

433-
Starting from version 3.3.0, you can change this behavior to capture them as success if you prefer:
433+
Starting from version 3.3.1, you can change this behavior to capture them as success if you prefer:
434434

435435
```json
436436
{
@@ -532,7 +532,7 @@ Starting from version 3.2.0, the following preview instrumentations can be enabl
532532
```
533533
> [!NOTE]
534534
> Akka instrumentation is available starting from version 3.2.2
535-
> Vertx HTTP Library instrumentation is available starting from version 3.3.0
535+
> Vertx HTTP Library instrumentation is available starting from version 3.3.1
536536
537537
## Metric interval
538538

@@ -605,7 +605,7 @@ When sending telemetry to the Application Insights service fails, Application In
605605
to disk and continue retrying from disk.
606606

607607
The default limit for disk persistence is 50 Mb. If you have high telemetry volume, or need to be able to recover from
608-
longer network or ingestion service outages, you can increase this limit starting from version 3.3.0:
608+
longer network or ingestion service outages, you can increase this limit starting from version 3.3.1:
609609

610610
```json
611611
{
@@ -643,7 +643,7 @@ and the console, corresponding to this configuration:
643643
`level` can be one of `OFF`, `ERROR`, `WARN`, `INFO`, `DEBUG`, or `TRACE`.
644644

645645
`path` can be an absolute or relative path. Relative paths are resolved against the directory where
646-
`applicationinsights-agent-3.3.0.jar` is located.
646+
`applicationinsights-agent-3.3.1.jar` is located.
647647

648648
`maxSizeMb` is the max size of the log file before it rolls over.
649649

0 commit comments

Comments
 (0)