Skip to content

Commit 884282c

Browse files
committed
Update version
1 parent f914c20 commit 884282c

File tree

5 files changed

+36
-36
lines changed

5 files changed

+36
-36
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
@@ -31,16 +31,16 @@ For more information, see [Use Application Insights Java In-Process Agent in Azu
3131
3232
### Docker entry point
3333

34-
If you're using the *exec* form, add the parameter `-javaagent:"path/to/applicationinsights-agent-3.4.19.jar"` to the parameter list somewhere before the `"-jar"` parameter, for example:
34+
If you're using the *exec* form, add the parameter `-javaagent:"path/to/applicationinsights-agent-3.5.0.jar"` to the parameter list somewhere before the `"-jar"` parameter, for example:
3535

3636
```
37-
ENTRYPOINT ["java", "-javaagent:path/to/applicationinsights-agent-3.4.19.jar", "-jar", "<myapp.jar>"]
37+
ENTRYPOINT ["java", "-javaagent:path/to/applicationinsights-agent-3.5.0.jar", "-jar", "<myapp.jar>"]
3838
```
3939

40-
If you're using the *shell* form, add the JVM arg `-javaagent:"path/to/applicationinsights-agent-3.4.19.jar"` somewhere before `-jar`, for example:
40+
If you're using the *shell* form, add the JVM arg `-javaagent:"path/to/applicationinsights-agent-3.5.0.jar"` somewhere before `-jar`, for example:
4141

4242
```
43-
ENTRYPOINT java -javaagent:"path/to/applicationinsights-agent-3.4.19.jar" -jar <myapp.jar>
43+
ENTRYPOINT java -javaagent:"path/to/applicationinsights-agent-3.5.0.jar" -jar <myapp.jar>
4444
```
4545

4646

@@ -53,16 +53,16 @@ FROM ...
5353
5454
COPY target/*.jar app.jar
5555
56-
COPY agent/applicationinsights-agent-3.4.19.jar applicationinsights-agent-3.4.19.jar
56+
COPY agent/applicationinsights-agent-3.5.0.jar applicationinsights-agent-3.5.0.jar
5757
5858
COPY agent/applicationinsights.json applicationinsights.json
5959
6060
ENV APPLICATIONINSIGHTS_CONNECTION_STRING="CONNECTION-STRING"
6161
62-
ENTRYPOINT["java", "-javaagent:applicationinsights-agent-3.4.19.jar", "-jar", "app.jar"]
62+
ENTRYPOINT["java", "-javaagent:applicationinsights-agent-3.5.0.jar", "-jar", "app.jar"]
6363
```
6464

65-
In this example we have copied the `applicationinsights-agent-3.4.19.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.
65+
In this example we have copied the `applicationinsights-agent-3.5.0.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.
6666

6767
### Third-party container images
6868

@@ -84,18 +84,18 @@ For information on setting up the Application Insights Java agent, see [Enabling
8484
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:
8585

8686
```
87-
JAVA_OPTS="$JAVA_OPTS -javaagent:path/to/applicationinsights-agent-3.4.19.jar"
87+
JAVA_OPTS="$JAVA_OPTS -javaagent:path/to/applicationinsights-agent-3.5.0.jar"
8888
```
8989

9090
#### Tomcat installed via download and unzip
9191

9292
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:
9393

9494
```
95-
CATALINA_OPTS="$CATALINA_OPTS -javaagent:path/to/applicationinsights-agent-3.4.19.jar"
95+
CATALINA_OPTS="$CATALINA_OPTS -javaagent:path/to/applicationinsights-agent-3.5.0.jar"
9696
```
9797

98-
If the file `<tomcat>/bin/setenv.sh` already exists, modify that file and add `-javaagent:path/to/applicationinsights-agent-3.4.19.jar` to `CATALINA_OPTS`.
98+
If the file `<tomcat>/bin/setenv.sh` already exists, modify that file and add `-javaagent:path/to/applicationinsights-agent-3.5.0.jar` to `CATALINA_OPTS`.
9999

100100
### Tomcat 8 (Windows)
101101

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

106106
```
107-
set CATALINA_OPTS=%CATALINA_OPTS% -javaagent:path/to/applicationinsights-agent-3.4.19.jar
107+
set CATALINA_OPTS=%CATALINA_OPTS% -javaagent:path/to/applicationinsights-agent-3.5.0.jar
108108
```
109109

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

112112
```
113-
set "CATALINA_OPTS=%CATALINA_OPTS% -javaagent:path/to/applicationinsights-agent-3.4.19.jar"
113+
set "CATALINA_OPTS=%CATALINA_OPTS% -javaagent:path/to/applicationinsights-agent-3.5.0.jar"
114114
```
115115

116-
If the file `<tomcat>/bin/setenv.bat` already exists, modify that file and add `-javaagent:path/to/applicationinsights-agent-3.4.19.jar` to `CATALINA_OPTS`.
116+
If the file `<tomcat>/bin/setenv.bat` already exists, modify that file and add `-javaagent:path/to/applicationinsights-agent-3.5.0.jar` to `CATALINA_OPTS`.
117117

118118
#### Run Tomcat as a Windows service
119119

120-
Locate the file `<tomcat>/bin/tomcat8w.exe`. Run that executable and add `-javaagent:path/to/applicationinsights-agent-3.4.19.jar` to the `Java Options` under the `Java` tab.
120+
Locate the file `<tomcat>/bin/tomcat8w.exe`. Run that executable and add `-javaagent:path/to/applicationinsights-agent-3.5.0.jar` to the `Java Options` under the `Java` tab.
121121

122122
### JBoss EAP 7
123123

124124
#### Standalone server
125125

126-
Add `-javaagent:path/to/applicationinsights-agent-3.4.19.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):
126+
Add `-javaagent:path/to/applicationinsights-agent-3.5.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):
127127

128128
```java ...
129-
JAVA_OPTS="-javaagent:path/to/applicationinsights-agent-3.4.19.jar -Xms1303m -Xmx1303m ..."
129+
JAVA_OPTS="-javaagent:path/to/applicationinsights-agent-3.5.0.jar -Xms1303m -Xmx1303m ..."
130130
...
131131
```
132132

133133
#### Domain server
134134

135-
Add `-javaagent:path/to/applicationinsights-agent-3.4.19.jar` to the existing `jvm-options` in `JBOSS_HOME/domain/configuration/host.xml`:
135+
Add `-javaagent:path/to/applicationinsights-agent-3.5.0.jar` to the existing `jvm-options` in `JBOSS_HOME/domain/configuration/host.xml`:
136136

137137
```xml
138138
...
@@ -142,7 +142,7 @@ Add `-javaagent:path/to/applicationinsights-agent-3.4.19.jar` to the existing `j
142142
<jvm-options>
143143
<option value="-server"/>
144144
<!--Add Java agent jar file here-->
145-
<option value="-javaagent:path/to/applicationinsights-agent-3.4.19.jar"/>
145+
<option value="-javaagent:path/to/applicationinsights-agent-3.5.0.jar"/>
146146
<option value="-XX:MetaspaceSize=96m"/>
147147
<option value="-XX:MaxMetaspaceSize=256m"/>
148148
</jvm-options>
@@ -181,19 +181,19 @@ Add these lines to `start.ini`:
181181

182182
```
183183
--exec
184-
-javaagent:path/to/applicationinsights-agent-3.4.19.jar
184+
-javaagent:path/to/applicationinsights-agent-3.5.0.jar
185185
```
186186

187187
### Payara 5
188188

189-
Add `-javaagent:path/to/applicationinsights-agent-3.4.19.jar` to the existing `jvm-options` in `glassfish/domains/domain1/config/domain.xml`:
189+
Add `-javaagent:path/to/applicationinsights-agent-3.5.0.jar` to the existing `jvm-options` in `glassfish/domains/domain1/config/domain.xml`:
190190

191191
```xml
192192
...
193193
<java-config ...>
194194
<!--Edit the JVM options here-->
195195
<jvm-options>
196-
-javaagent:path/to/applicationinsights-agent-3.4.19.jar>
196+
-javaagent:path/to/applicationinsights-agent-3.5.0.jar>
197197
</jvm-options>
198198
...
199199
</java-config>
@@ -212,7 +212,7 @@ Add `-javaagent:path/to/applicationinsights-agent-3.4.19.jar` to the existing `j
212212
1. In `Generic JVM arguments`, add the following JVM argument:
213213
214214
```
215-
-javaagent:path/to/applicationinsights-agent-3.4.19.jar
215+
-javaagent:path/to/applicationinsights-agent-3.5.0.jar
216216
```
217217
218218
1. Save and restart the application server.
@@ -222,7 +222,7 @@ Add `-javaagent:path/to/applicationinsights-agent-3.4.19.jar` to the existing `j
222222
Create a new file `jvm.options` in the server directory (for example, `<openliberty>/usr/servers/defaultServer`), and add this line:
223223
224224
```
225-
-javaagent:path/to/applicationinsights-agent-3.4.19.jar
225+
-javaagent:path/to/applicationinsights-agent-3.5.0.jar
226226
```
227227
228228
### Others

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ There are two options for enabling Application Insights Java with Spring Boot: J
1616

1717
## Enabling with JVM argument
1818

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

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

2525
### Spring Boot via Docker entry point
@@ -38,7 +38,7 @@ To enable Application Insights Java programmatically, you must add the following
3838
<dependency>
3939
<groupId>com.microsoft.azure</groupId>
4040
<artifactId>applicationinsights-runtime-attach</artifactId>
41-
<version>3.4.19</version>
41+
<version>3.5.0</version>
4242
</dependency>
4343
```
4444

@@ -115,7 +115,7 @@ First, add the `applicationinsights-core` dependency:
115115
<dependency>
116116
<groupId>com.microsoft.azure</groupId>
117117
<artifactId>applicationinsights-core</artifactId>
118-
<version>3.4.19</version>
118+
<version>3.5.0</version>
119119
</dependency>
120120
```
121121

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ More information and configuration options are provided in the following section
3030

3131
## Configuration file path
3232

33-
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.19.jar`.
33+
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.5.0.jar`.
3434

3535
You can specify your own configuration file path by using one of these two options:
3636

3737
* `APPLICATIONINSIGHTS_CONFIGURATION_FILE` environment variable
3838
* `applicationinsights.configuration.file` Java system property
3939

40-
If you specify a relative path, it resolves relative to the directory where `applicationinsights-agent-3.4.19.jar` is located.
40+
If you specify a relative path, it resolves relative to the directory where `applicationinsights-agent-3.5.0.jar` is located.
4141

4242
Alternatively, instead of using a configuration file, you can specify the entire _content_ of the JSON configuration via the environment variable `APPLICATIONINSIGHTS_CONFIGURATION_CONTENT`.
4343

@@ -60,7 +60,7 @@ Or you can set the connection string by using the Java system property `applicat
6060

6161
You can also set the connection string by specifying a file to load the connection string from.
6262

63-
If you specify a relative path, it resolves relative to the directory where `applicationinsights-agent-3.4.19.jar` is located.
63+
If you specify a relative path, it resolves relative to the directory where `applicationinsights-agent-3.5.0.jar` is located.
6464

6565
```json
6666
{
@@ -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.19</version>
331+
<version>3.5.0</version>
332332
</dependency>
333333
```
334334

@@ -858,7 +858,7 @@ In the preceding configuration example:
858858

859859
* `level` can be one of `OFF`, `ERROR`, `WARN`, `INFO`, `DEBUG`, or `TRACE`.
860860
* `path` can be an absolute or relative path. Relative paths are resolved against the directory where
861-
`applicationinsights-agent-3.4.19.jar` is located.
861+
`applicationinsights-agent-3.5.0.jar` is located.
862862

863863
Starting from version 3.0.2, you can also set the self-diagnostics `level` by using the environment variable
864864
`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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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.19.jar
32+
-javaagent:path/to/applicationinsights-agent-3.5.0.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: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ dotnet add package Azure.Monitor.OpenTelemetry.Exporter
7878

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

81-
Download the [applicationinsights-agent-3.4.19.jar](https://github.com/microsoft/ApplicationInsights-Java/releases/download/3.4.19/applicationinsights-agent-3.4.19.jar) file.
81+
Download the [applicationinsights-agent-3.5.0.jar](https://github.com/microsoft/ApplicationInsights-Java/releases/download/3.5.0/applicationinsights-agent-3.5.0.jar) file.
8282

8383
> [!WARNING]
8484
>
@@ -187,7 +187,7 @@ var loggerFactory = LoggerFactory.Create(builder =>
187187

188188
Java autoinstrumentation is enabled through configuration changes; no code changes are required.
189189

190-
Point the JVM to the jar file by adding `-javaagent:"path/to/applicationinsights-agent-3.4.19.jar"` to your application's JVM args.
190+
Point the JVM to the jar file by adding `-javaagent:"path/to/applicationinsights-agent-3.5.0.jar"` to your application's JVM args.
191191

192192
> [!TIP]
193193
> Sampling is enabled by default at a rate of 5 requests per second, aiding in cost management. Telemetry data may be missing in scenarios exceeding this rate. For more information on modifying sampling configuration, see [sampling overrides](./java-standalone-sampling-overrides.md).
@@ -265,7 +265,7 @@ To paste your Connection String, select from the following options:
265265

266266
B. Set via Configuration File - Java Only (Recommended)
267267

268-
Create a configuration file named `applicationinsights.json`, and place it in the same directory as `applicationinsights-agent-3.4.19.jar` with the following content:
268+
Create a configuration file named `applicationinsights.json`, and place it in the same directory as `applicationinsights-agent-3.5.0.jar` with the following content:
269269

270270
```json
271271
{

0 commit comments

Comments
 (0)