Skip to content

Commit d83f9b1

Browse files
authored
Merge pull request #189621 from heyams/heya/3.2.7-update
Update to 3.2.7
2 parents 6d60c8e + 22797ab commit d83f9b1

File tree

3 files changed

+33
-33
lines changed

3 files changed

+33
-33
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ This section shows you how to download the auto-instrumentation jar file.
2727

2828
#### Download the jar file
2929

30-
Download the [applicationinsights-agent-3.2.6.jar](https://github.com/microsoft/ApplicationInsights-Java/releases/download/3.2.6/applicationinsights-agent-3.2.6.jar) file.
30+
Download the [applicationinsights-agent-3.2.7.jar](https://github.com/microsoft/ApplicationInsights-Java/releases/download/3.2.7/applicationinsights-agent-3.2.7.jar) file.
3131

3232
> [!WARNING]
3333
>
@@ -49,7 +49,7 @@ Download the [applicationinsights-agent-3.2.6.jar](https://github.com/microsoft/
4949
5050
#### Point the JVM to the jar file
5151

52-
Add `-javaagent:path/to/applicationinsights-agent-3.2.6.jar` to your application's JVM args.
52+
Add `-javaagent:path/to/applicationinsights-agent-3.2.7.jar` to your application's JVM args.
5353

5454
> [!TIP]
5555
> For help with configuring your application's JVM args, see [Tips for updating your JVM args](./java-standalone-arguments.md).
@@ -64,7 +64,7 @@ Add `-javaagent:path/to/applicationinsights-agent-3.2.6.jar` to your application
6464
APPLICATIONINSIGHTS_CONNECTION_STRING=InstrumentationKey=...
6565
```
6666

67-
- Or you can create a configuration file named `applicationinsights.json`. Place it in the same directory as `applicationinsights-agent-3.2.6.jar` with the following content:
67+
- Or you can create a configuration file named `applicationinsights.json`. Place it in the same directory as `applicationinsights-agent-3.2.7.jar` with the following content:
6868

6969
```json
7070
{

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

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -15,24 +15,24 @@ Configure [App Services](../../app-service/configure-language-java.md#set-java-r
1515

1616
## Spring Boot
1717

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

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

2424
## Spring Boot via Docker entry point
2525

26-
If you are using the *exec* form, add the parameter `"-javaagent:path/to/applicationinsights-agent-3.2.6.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.2.7.jar"` to the parameter list somewhere before the `"-jar"` parameter, for example:
2727

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

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

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

3838
## Tomcat 8 (Linux)
@@ -42,18 +42,18 @@ ENTRYPOINT java -javaagent:path/to/applicationinsights-agent-3.2.6.jar -jar <mya
4242
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:
4343

4444
```
45-
JAVA_OPTS="$JAVA_OPTS -javaagent:path/to/applicationinsights-agent-3.2.6.jar"
45+
JAVA_OPTS="$JAVA_OPTS -javaagent:path/to/applicationinsights-agent-3.2.7.jar"
4646
```
4747

4848
### Tomcat installed via download and unzip
4949

5050
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:
5151

5252
```
53-
CATALINA_OPTS="$CATALINA_OPTS -javaagent:path/to/applicationinsights-agent-3.2.6.jar"
53+
CATALINA_OPTS="$CATALINA_OPTS -javaagent:path/to/applicationinsights-agent-3.2.7.jar"
5454
```
5555

56-
If the file `<tomcat>/bin/setenv.sh` already exists, then modify that file and add `-javaagent:path/to/applicationinsights-agent-3.2.6.jar` to `CATALINA_OPTS`.
56+
If the file `<tomcat>/bin/setenv.sh` already exists, then modify that file and add `-javaagent:path/to/applicationinsights-agent-3.2.7.jar` to `CATALINA_OPTS`.
5757

5858

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

6565
```
66-
set CATALINA_OPTS=%CATALINA_OPTS% -javaagent:path/to/applicationinsights-agent-3.2.6.jar
66+
set CATALINA_OPTS=%CATALINA_OPTS% -javaagent:path/to/applicationinsights-agent-3.2.7.jar
6767
```
6868

69-
Quotes are not necessary, but if you want to include them, the proper placement is:
69+
Quotes aren't necessary, but if you want to include them, the proper placement is:
7070

7171
```
72-
set "CATALINA_OPTS=%CATALINA_OPTS% -javaagent:path/to/applicationinsights-agent-3.2.6.jar"
72+
set "CATALINA_OPTS=%CATALINA_OPTS% -javaagent:path/to/applicationinsights-agent-3.2.7.jar"
7373
```
7474

75-
If the file `<tomcat>/bin/setenv.bat` already exists, just modify that file and add `-javaagent:path/to/applicationinsights-agent-3.2.6.jar` to `CATALINA_OPTS`.
75+
If the file `<tomcat>/bin/setenv.bat` already exists, just modify that file and add `-javaagent:path/to/applicationinsights-agent-3.2.7.jar` to `CATALINA_OPTS`.
7676

7777
### Running Tomcat as a Windows service
7878

79-
Locate the file `<tomcat>/bin/tomcat8w.exe`. Run that executable and add `-javaagent:path/to/applicationinsights-agent-3.2.6.jar` to the `Java Options` under the `Java` tab.
79+
Locate the file `<tomcat>/bin/tomcat8w.exe`. Run that executable and add `-javaagent:path/to/applicationinsights-agent-3.2.7.jar` to the `Java Options` under the `Java` tab.
8080

8181

8282
## JBoss EAP 7
8383

8484
### Standalone server
8585

86-
Add `-javaagent:path/to/applicationinsights-agent-3.2.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):
86+
Add `-javaagent:path/to/applicationinsights-agent-3.2.7.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):
8787

8888
```java ...
89-
JAVA_OPTS="-javaagent:path/to/applicationinsights-agent-3.2.6.jar -Xms1303m -Xmx1303m ..."
89+
JAVA_OPTS="-javaagent:path/to/applicationinsights-agent-3.2.7.jar -Xms1303m -Xmx1303m ..."
9090
...
9191
```
9292

9393
### Domain server
9494

95-
Add `-javaagent:path/to/applicationinsights-agent-3.2.6.jar` to the existing `jvm-options` in `JBOSS_HOME/domain/configuration/host.xml`:
95+
Add `-javaagent:path/to/applicationinsights-agent-3.2.7.jar` to the existing `jvm-options` in `JBOSS_HOME/domain/configuration/host.xml`:
9696

9797
```xml
9898
...
@@ -102,7 +102,7 @@ Add `-javaagent:path/to/applicationinsights-agent-3.2.6.jar` to the existing `jv
102102
<jvm-options>
103103
<option value="-server"/>
104104
<!--Add Java agent jar file here-->
105-
<option value="-javaagent:path/to/applicationinsights-agent-3.2.6.jar"/>
105+
<option value="-javaagent:path/to/applicationinsights-agent-3.2.7.jar"/>
106106
<option value="-XX:MetaspaceSize=96m"/>
107107
<option value="-XX:MaxMetaspaceSize=256m"/>
108108
</jvm-options>
@@ -142,20 +142,20 @@ Add these lines to `start.ini`
142142

143143
```
144144
--exec
145-
-javaagent:path/to/applicationinsights-agent-3.2.6.jar
145+
-javaagent:path/to/applicationinsights-agent-3.2.7.jar
146146
```
147147

148148

149149
## Payara 5
150150

151-
Add `-javaagent:path/to/applicationinsights-agent-3.2.6.jar` to the existing `jvm-options` in `glassfish/domains/domain1/config/domain.xml`:
151+
Add `-javaagent:path/to/applicationinsights-agent-3.2.7.jar` to the existing `jvm-options` in `glassfish/domains/domain1/config/domain.xml`:
152152

153153
```xml
154154
...
155155
<java-config ...>
156156
<!--Edit the JVM options here-->
157157
<jvm-options>
158-
-javaagent:path/to/applicationinsights-agent-3.2.6.jar>
158+
-javaagent:path/to/applicationinsights-agent-3.2.7.jar>
159159
</jvm-options>
160160
...
161161
</java-config>
@@ -172,7 +172,7 @@ Java and Process Management > Process definition > Java Virtual Machine
172172
```
173173
In "Generic JVM arguments" add the following:
174174
```
175-
-javaagent:path/to/applicationinsights-agent-3.2.6.jar
175+
-javaagent:path/to/applicationinsights-agent-3.2.7.jar
176176
```
177177
After that, save and restart the application server.
178178

@@ -181,7 +181,7 @@ After that, save and restart the application server.
181181

182182
Create a new file `jvm.options` in the server directory (for example `<openliberty>/usr/servers/defaultServer`), and add this line:
183183
```
184-
-javaagent:path/to/applicationinsights-agent-3.2.6.jar
184+
-javaagent:path/to/applicationinsights-agent-3.2.7.jar
185185
```
186186

187187
## Others

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

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

3636
## Configuration file path
3737

38-
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.2.6.jar`.
38+
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.2.7.jar`.
3939

4040
You can specify your own configuration file path using either
4141

4242
* `APPLICATIONINSIGHTS_CONFIGURATION_FILE` environment variable, or
4343
* `applicationinsights.configuration.file` Java system property
4444

45-
If you specify a relative path, it will be resolved relative to the directory where `applicationinsights-agent-3.2.6.jar` is located.
45+
If you specify a relative path, it will be resolved relative to the directory where `applicationinsights-agent-3.2.7.jar` is located.
4646

4747
Alternatively, instead of using a configuration file, you can specify the entire _content_ of the json configuration
4848
via the environment variable `APPLICATIONINSIGHTS_CONFIGURATION_CONTENT`.
@@ -65,7 +65,7 @@ You can also set the connection string using the environment variable `APPLICATI
6565

6666
You can also set the connection string by specifying a file to load the connection string from.
6767

68-
If you specify a relative path, it will be resolved relative to the directory where `applicationinsights-agent-3.2.6.jar` is located.
68+
If you specify a relative path, it will be resolved relative to the directory where `applicationinsights-agent-3.2.7.jar` is located.
6969

7070
```json
7171
{
@@ -340,7 +340,7 @@ To disable auto-collection of Micrometer metrics (including Spring Boot Actuator
340340

341341
## HTTP headers
342342

343-
Starting from 3.2.6, you can capture request and response headers on your server (request) telemetry:
343+
Starting from 3.2.7, you can capture request and response headers on your server (request) telemetry:
344344

345345
```json
346346
{
@@ -386,7 +386,7 @@ Again, the header names are case-insensitive, and the examples above will be cap
386386

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

389-
Starting from version 3.2.6, you can change this behavior to capture them as success if you prefer:
389+
Starting from version 3.2.7, you can change this behavior to capture them as success if you prefer:
390390

391391
```json
392392
{
@@ -488,7 +488,7 @@ Starting from version 3.2.0, the following preview instrumentations can be enabl
488488
```
489489
> [!NOTE]
490490
> Akka instrumentation is available starting from version 3.2.2
491-
> Vertx HTTP Library instrumentation is available starting from version 3.2.6
491+
> Vertx HTTP Library instrumentation is available starting from version 3.2.7
492492
493493
## Metric interval
494494

@@ -583,7 +583,7 @@ and the console, corresponding to this configuration:
583583
`level` can be one of `OFF`, `ERROR`, `WARN`, `INFO`, `DEBUG`, or `TRACE`.
584584

585585
`path` can be an absolute or relative path. Relative paths are resolved against the directory where
586-
`applicationinsights-agent-3.2.6.jar` is located.
586+
`applicationinsights-agent-3.2.7.jar` is located.
587587

588588
`maxSizeMb` is the max size of the log file before it rolls over.
589589

0 commit comments

Comments
 (0)