Skip to content

Commit 9b4ae29

Browse files
authored
Merge pull request #177221 from kryalama/kryalama/java321release
prepare for 3.2.1 release
2 parents c6f4d9d + 930ef96 commit 9b4ae29

File tree

4 files changed

+35
-30
lines changed

4 files changed

+35
-30
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
@@ -25,7 +25,7 @@ Java auto-instrumentation can be enabled without any code changes.
2525

2626
#### 1. Download jar file
2727

28-
Download the [applicationinsights-agent-3.2.0.jar](https://github.com/microsoft/ApplicationInsights-Java/releases/download/3.2.0/applicationinsights-agent-3.2.0.jar) file.
28+
Download the [applicationinsights-agent-3.2.1.jar](https://github.com/microsoft/ApplicationInsights-Java/releases/download/3.2.1/applicationinsights-agent-3.2.1.jar) file.
2929

3030
> [!WARNING]
3131
>
@@ -47,7 +47,7 @@ Download the [applicationinsights-agent-3.2.0.jar](https://github.com/microsoft/
4747
4848
#### 2. Point the JVM to the jar file
4949

50-
Add `-javaagent:path/to/applicationinsights-agent-3.2.0.jar` to your application's JVM args.
50+
Add `-javaagent:path/to/applicationinsights-agent-3.2.1.jar` to your application's JVM args.
5151

5252
> [!TIP]
5353
> For help with configuring your application's JVM args, see [Tips for updating your JVM args](./java-standalone-arguments.md).
@@ -60,7 +60,7 @@ Point the jar file to your Application Insights resource, either by setting an e
6060
APPLICATIONINSIGHTS_CONNECTION_STRING=InstrumentationKey=...
6161
```
6262

63-
Or by creating a configuration file named `applicationinsights.json`, and placing it in the same directory as `applicationinsights-agent-3.2.0.jar`, with the following content:
63+
Or by creating a configuration file named `applicationinsights.json`, and placing it in the same directory as `applicationinsights-agent-3.2.1.jar`, with the following content:
6464

6565
```json
6666
{

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

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

1717
## Spring Boot
1818

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

2121
```
22-
java -javaagent:path/to/applicationinsights-agent-3.2.0.jar -jar <myapp.jar>
22+
java -javaagent:path/to/applicationinsights-agent-3.2.1.jar -jar <myapp.jar>
2323
```
2424

2525
## Spring Boot via Docker entry point
2626

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

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

33-
If you are using the *shell* form, add the JVM arg `-javaagent:path/to/applicationinsights-agent-3.2.0.jar` somewhere before `-jar`, for example:
33+
If you are using the *shell* form, add the JVM arg `-javaagent:path/to/applicationinsights-agent-3.2.1.jar` somewhere before `-jar`, for example:
3434

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

3939
## Tomcat 8 (Linux)
@@ -43,18 +43,18 @@ ENTRYPOINT java -javaagent:path/to/applicationinsights-agent-3.2.0.jar -jar <mya
4343
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:
4444

4545
```
46-
JAVA_OPTS="$JAVA_OPTS -javaagent:path/to/applicationinsights-agent-3.2.0.jar"
46+
JAVA_OPTS="$JAVA_OPTS -javaagent:path/to/applicationinsights-agent-3.2.1.jar"
4747
```
4848

4949
### Tomcat installed via download and unzip
5050

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

5353
```
54-
CATALINA_OPTS="$CATALINA_OPTS -javaagent:path/to/applicationinsights-agent-3.2.0.jar"
54+
CATALINA_OPTS="$CATALINA_OPTS -javaagent:path/to/applicationinsights-agent-3.2.1.jar"
5555
```
5656

57-
If the file `<tomcat>/bin/setenv.sh` already exists, then modify that file and add `-javaagent:path/to/applicationinsights-agent-3.2.0.jar` to `CATALINA_OPTS`.
57+
If the file `<tomcat>/bin/setenv.sh` already exists, then modify that file and add `-javaagent:path/to/applicationinsights-agent-3.2.1.jar` to `CATALINA_OPTS`.
5858

5959

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

6666
```
67-
set CATALINA_OPTS=%CATALINA_OPTS% -javaagent:path/to/applicationinsights-agent-3.2.0.jar
67+
set CATALINA_OPTS=%CATALINA_OPTS% -javaagent:path/to/applicationinsights-agent-3.2.1.jar
6868
```
6969

7070
Quotes are not necessary, but if you want to include them, the proper placement is:
7171

7272
```
73-
set "CATALINA_OPTS=%CATALINA_OPTS% -javaagent:path/to/applicationinsights-agent-3.2.0.jar"
73+
set "CATALINA_OPTS=%CATALINA_OPTS% -javaagent:path/to/applicationinsights-agent-3.2.1.jar"
7474
```
7575

76-
If the file `<tomcat>/bin/setenv.bat` already exists, just modify that file and add `-javaagent:path/to/applicationinsights-agent-3.2.0.jar` to `CATALINA_OPTS`.
76+
If the file `<tomcat>/bin/setenv.bat` already exists, just modify that file and add `-javaagent:path/to/applicationinsights-agent-3.2.1.jar` to `CATALINA_OPTS`.
7777

7878
### Running Tomcat as a Windows service
7979

80-
Locate the file `<tomcat>/bin/tomcat8w.exe`. Run that executable and add `-javaagent:path/to/applicationinsights-agent-3.2.0.jar` to the `Java Options` under the `Java` tab.
80+
Locate the file `<tomcat>/bin/tomcat8w.exe`. Run that executable and add `-javaagent:path/to/applicationinsights-agent-3.2.1.jar` to the `Java Options` under the `Java` tab.
8181

8282

8383
## JBoss EAP 7
8484

8585
### Standalone server
8686

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

8989
```java ...
90-
JAVA_OPTS="-javaagent:path/to/applicationinsights-agent-3.2.0.jar -Xms1303m -Xmx1303m ..."
90+
JAVA_OPTS="-javaagent:path/to/applicationinsights-agent-3.2.1.jar -Xms1303m -Xmx1303m ..."
9191
...
9292
```
9393

9494
### Domain server
9595

96-
Add `-javaagent:path/to/applicationinsights-agent-3.2.0.jar` to the existing `jvm-options` in `JBOSS_HOME/domain/configuration/host.xml`:
96+
Add `-javaagent:path/to/applicationinsights-agent-3.2.1.jar` to the existing `jvm-options` in `JBOSS_HOME/domain/configuration/host.xml`:
9797

9898
```xml
9999
...
@@ -103,7 +103,7 @@ Add `-javaagent:path/to/applicationinsights-agent-3.2.0.jar` to the existing `jv
103103
<jvm-options>
104104
<option value="-server"/>
105105
<!--Add Java agent jar file here-->
106-
<option value="-javaagent:path/to/applicationinsights-agent-3.2.0.jar"/>
106+
<option value="-javaagent:path/to/applicationinsights-agent-3.2.1.jar"/>
107107
<option value="-XX:MetaspaceSize=96m"/>
108108
<option value="-XX:MaxMetaspaceSize=256m"/>
109109
</jvm-options>
@@ -143,20 +143,20 @@ Add these lines to `start.ini`
143143

144144
```
145145
--exec
146-
-javaagent:path/to/applicationinsights-agent-3.2.0.jar
146+
-javaagent:path/to/applicationinsights-agent-3.2.1.jar
147147
```
148148

149149

150150
## Payara 5
151151

152-
Add `-javaagent:path/to/applicationinsights-agent-3.2.0.jar` to the existing `jvm-options` in `glassfish/domains/domain1/config/domain.xml`:
152+
Add `-javaagent:path/to/applicationinsights-agent-3.2.1.jar` to the existing `jvm-options` in `glassfish/domains/domain1/config/domain.xml`:
153153

154154
```xml
155155
...
156156
<java-config ...>
157157
<!--Edit the JVM options here-->
158158
<jvm-options>
159-
-javaagent:path/to/applicationinsights-agent-3.2.0.jar>
159+
-javaagent:path/to/applicationinsights-agent-3.2.1.jar>
160160
</jvm-options>
161161
...
162162
</java-config>
@@ -173,7 +173,7 @@ Java and Process Management > Process definition > Java Virtual Machine
173173
```
174174
In "Generic JVM arguments" add the following:
175175
```
176-
-javaagent:path/to/applicationinsights-agent-3.2.0.jar
176+
-javaagent:path/to/applicationinsights-agent-3.2.1.jar
177177
```
178178
After that, save and restart the application server.
179179

@@ -182,7 +182,7 @@ After that, save and restart the application server.
182182

183183
Create a new file `jvm.options` in the server directory (for example `<openliberty>/usr/servers/defaultServer`), and add this line:
184184
```
185-
-javaagent:path/to/applicationinsights-agent-3.2.0.jar
185+
-javaagent:path/to/applicationinsights-agent-3.2.1.jar
186186
```
187187

188188
## Others

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

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,14 @@ You will find more details and additional configuration options below.
3636

3737
## Configuration file path
3838

39-
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.0.jar`.
39+
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.1.jar`.
4040

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

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

46-
If you specify a relative path, it will be resolved relative to the directory where `applicationinsights-agent-3.2.0.jar` is located.
46+
If you specify a relative path, it will be resolved relative to the directory where `applicationinsights-agent-3.2.1.jar` is located.
4747

4848
## Connection string
4949

@@ -363,11 +363,16 @@ Starting from version 3.2.0, the following preview instrumentations can be enabl
363363
},
364364
"springIntegration": {
365365
"enabled": true
366-
}
366+
},
367+
"akka": {
368+
"enabled": true
369+
},
367370
}
368371
}
369372
}
370373
```
374+
> [!NOTE]
375+
> Akka instrumentation is available starting from version 3.2.1
371376
372377
## Heartbeat
373378

@@ -479,7 +484,7 @@ and the console, corresponding to this configuration:
479484
`level` can be one of `OFF`, `ERROR`, `WARN`, `INFO`, `DEBUG`, or `TRACE`.
480485

481486
`path` can be an absolute or relative path. Relative paths are resolved against the directory where
482-
`applicationinsights-agent-3.2.0.jar` is located.
487+
`applicationinsights-agent-3.2.1.jar` is located.
483488

484489
`maxSizeMb` is the max size of the log file before it rolls over.
485490

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ In this article, we cover some of the common issues that you might face while in
1111

1212
## Check the self-diagnostic log file
1313

14-
By default, Application Insights Java 3.x produces a log file named `applicationinsights.log` in the same directory that holds the `applicationinsights-agent-3.2.0.jar` file.
14+
By default, Application Insights Java 3.x produces a log file named `applicationinsights.log` in the same directory that holds the `applicationinsights-agent-3.2.1.jar` file.
1515

1616
This log file is the first place to check for hints to any issues you might be experiencing.
1717

0 commit comments

Comments
 (0)