You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-monitor/app/java-get-started-supplemental.md
+23-23Lines changed: 23 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,16 +31,16 @@ For more information, see [Use Application Insights Java In-Process Agent in Azu
31
31
32
32
### Docker entry point
33
33
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:
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.
66
66
67
67
### Third-party container images
68
68
@@ -84,18 +84,18 @@ For information on setting up the Application Insights Java agent, see [Enabling
84
84
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:
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:
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`.
99
99
100
100
### Tomcat 8 (Windows)
101
101
@@ -104,35 +104,35 @@ If the file `<tomcat>/bin/setenv.sh` already exists, modify that file and add `-
104
104
Locate the file `<tomcat>/bin/catalina.bat`. Create a new file in the same directory named `<tomcat>/bin/setenv.bat` with the following content:
105
105
106
106
```
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
108
108
```
109
109
110
110
Quotes aren't necessary, but if you want to include them, the proper placement is:
111
111
112
112
```
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"
114
114
```
115
115
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`.
117
117
118
118
#### Run Tomcat as a Windows service
119
119
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.
121
121
122
122
### JBoss EAP 7
123
123
124
124
#### Standalone server
125
125
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):
Copy file name to clipboardExpand all lines: articles/azure-monitor/app/java-standalone-config.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,14 +30,14 @@ More information and configuration options are provided in the following section
30
30
31
31
## Configuration file path
32
32
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`.
34
34
35
35
You can specify your own configuration file path by using one of these two options:
*`applicationinsights.configuration.file` Java system property
39
39
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.
41
41
42
42
Alternatively, instead of using a configuration file, you can specify the entire _content_ of the JSON configuration via the environment variable `APPLICATIONINSIGHTS_CONFIGURATION_CONTENT`.
43
43
@@ -60,7 +60,7 @@ Or you can set the connection string by using the Java system property `applicat
60
60
61
61
You can also set the connection string by specifying a file to load the connection string from.
62
62
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.
64
64
65
65
```json
66
66
{
@@ -328,7 +328,7 @@ and add `applicationinsights-core` to your application:
328
328
<dependency>
329
329
<groupId>com.microsoft.azure</groupId>
330
330
<artifactId>applicationinsights-core</artifactId>
331
-
<version>3.4.19</version>
331
+
<version>3.5.0</version>
332
332
</dependency>
333
333
```
334
334
@@ -858,7 +858,7 @@ In the preceding configuration example:
858
858
859
859
*`level` can be one of `OFF`, `ERROR`, `WARN`, `INFO`, `DEBUG`, or `TRACE`.
860
860
*`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.
862
862
863
863
Starting from version 3.0.2, you can also set the self-diagnostics `level` by using the environment variable
864
864
`APPLICATIONINSIGHTS_SELF_DIAGNOSTICS_LEVEL`. It then takes precedence over the self-diagnostics level specified in the JSON configuration.
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.
82
82
83
83
> [!WARNING]
84
84
>
@@ -187,7 +187,7 @@ var loggerFactory = LoggerFactory.Create(builder =>
187
187
188
188
Java autoinstrumentation is enabled through configuration changes; no code changes are required.
189
189
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.
191
191
192
192
> [!TIP]
193
193
> 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:
265
265
266
266
B. Set via Configuration File - Java Only (Recommended)
267
267
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:
0 commit comments