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-in-process-agent.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,7 @@ This section shows you how to download the auto-instrumentation jar file.
30
30
31
31
#### Download the jar file
32
32
33
-
Download the [applicationinsights-agent-3.4.1.jar](https://github.com/microsoft/ApplicationInsights-Java/releases/download/3.4.1/applicationinsights-agent-3.4.1.jar) file.
33
+
Download the [applicationinsights-agent-3.4.2.jar](https://github.com/microsoft/ApplicationInsights-Java/releases/download/3.4.2/applicationinsights-agent-3.4.2.jar) file.
34
34
35
35
> [!WARNING]
36
36
>
@@ -62,7 +62,7 @@ Download the [applicationinsights-agent-3.4.1.jar](https://github.com/microsoft/
62
62
63
63
#### Point the JVM to the jar file
64
64
65
-
Add `-javaagent:"path/to/applicationinsights-agent-3.4.1.jar"` to your application's JVM args.
65
+
Add `-javaagent:"path/to/applicationinsights-agent-3.4.2.jar"` to your application's JVM args.
66
66
67
67
> [!TIP]
68
68
> For help with configuring your application's JVM args, see [Tips for updating your JVM args](./java-standalone-arguments.md).
@@ -80,7 +80,7 @@ Add `-javaagent:"path/to/applicationinsights-agent-3.4.1.jar"` to your applicati
80
80
APPLICATIONINSIGHTS_CONNECTION_STRING=<Copy connection string from Application Insights Resource Overview>
81
81
```
82
82
83
-
- Or you can create a configuration file named `applicationinsights.json`. Place it in the same directory as `applicationinsights-agent-3.4.1.jar` with the following content:
83
+
- Or you can create a configuration file named `applicationinsights.json`. Place it in the same directory as `applicationinsights-agent-3.4.2.jar` with the following content:
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:
If the file `<tomcat>/bin/setenv.sh` already exists, then modify that file and add `-javaagent:path/to/applicationinsights-agent-3.4.1.jar` to `CATALINA_OPTS`.
43
+
If the file `<tomcat>/bin/setenv.sh` already exists, then modify that file and add `-javaagent:path/to/applicationinsights-agent-3.4.2.jar` to `CATALINA_OPTS`.
44
44
45
45
46
46
## Tomcat 8 (Windows)
@@ -50,36 +50,36 @@ If the file `<tomcat>/bin/setenv.sh` already exists, then modify that file and a
50
50
Locate the file `<tomcat>/bin/catalina.bat`. Create a new file in the same directory named `<tomcat>/bin/setenv.bat` with the following content:
51
51
52
52
```
53
-
set CATALINA_OPTS=%CATALINA_OPTS% -javaagent:path/to/applicationinsights-agent-3.4.1.jar
53
+
set CATALINA_OPTS=%CATALINA_OPTS% -javaagent:path/to/applicationinsights-agent-3.4.2.jar
54
54
```
55
55
56
56
Quotes aren't necessary, but if you want to include them, the proper placement is:
57
57
58
58
```
59
-
set "CATALINA_OPTS=%CATALINA_OPTS% -javaagent:path/to/applicationinsights-agent-3.4.1.jar"
59
+
set "CATALINA_OPTS=%CATALINA_OPTS% -javaagent:path/to/applicationinsights-agent-3.4.2.jar"
60
60
```
61
61
62
-
If the file `<tomcat>/bin/setenv.bat` already exists, just modify that file and add `-javaagent:path/to/applicationinsights-agent-3.4.1.jar` to `CATALINA_OPTS`.
62
+
If the file `<tomcat>/bin/setenv.bat` already exists, just modify that file and add `-javaagent:path/to/applicationinsights-agent-3.4.2.jar` to `CATALINA_OPTS`.
63
63
64
64
### Running Tomcat as a Windows service
65
65
66
-
Locate the file `<tomcat>/bin/tomcat8w.exe`. Run that executable and add `-javaagent:path/to/applicationinsights-agent-3.4.1.jar` to the `Java Options` under the `Java` tab.
66
+
Locate the file `<tomcat>/bin/tomcat8w.exe`. Run that executable and add `-javaagent:path/to/applicationinsights-agent-3.4.2.jar` to the `Java Options` under the `Java` tab.
67
67
68
68
69
69
## JBoss EAP 7
70
70
71
71
### Standalone server
72
72
73
-
Add `-javaagent:path/to/applicationinsights-agent-3.4.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):
73
+
Add `-javaagent:path/to/applicationinsights-agent-3.4.2.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
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,14 +32,14 @@ You will find more details and additional configuration options below.
32
32
33
33
## Configuration file path
34
34
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.4.1.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.4.2.jar`.
36
36
37
37
You can specify your own configuration file path using either
38
38
39
39
*`APPLICATIONINSIGHTS_CONFIGURATION_FILE` environment variable, or
40
40
*`applicationinsights.configuration.file` Java system property
41
41
42
-
If you specify a relative path, it will be resolved relative to the directory where `applicationinsights-agent-3.4.1.jar` is located.
42
+
If you specify a relative path, it will be resolved relative to the directory where `applicationinsights-agent-3.4.2.jar` is located.
43
43
44
44
Alternatively, instead of using a configuration file, you can specify the entire _content_ of the json configuration
45
45
via the environment variable `APPLICATIONINSIGHTS_CONFIGURATION_CONTENT`.
@@ -62,7 +62,7 @@ You can also set the connection string using the environment variable `APPLICATI
62
62
63
63
You can also set the connection string by specifying a file to load the connection string from.
64
64
65
-
If you specify a relative path, it will be resolved relative to the directory where `applicationinsights-agent-3.4.1.jar` is located.
65
+
If you specify a relative path, it will be resolved relative to the directory where `applicationinsights-agent-3.4.2.jar` is located.
66
66
67
67
```json
68
68
{
@@ -136,7 +136,7 @@ Furthermore, sampling is trace ID based, to help ensure consistent sampling deci
136
136
137
137
### Rate-Limited Sampling
138
138
139
-
Starting from 3.4.1, rate-limited sampling is available, and is now the default.
139
+
Starting from 3.4.2, rate-limited sampling is available, and is now the default.
140
140
141
141
If no sampling has been configured, the default is now rate-limited sampling configured to capture at most
142
142
(approximately) 5 requests per second, along with all the dependencies and logs on those requests.
@@ -264,7 +264,7 @@ Starting from version 3.2.0, if you want to set a custom dimension programmatica
264
264
265
265
## Connection string overrides (preview)
266
266
267
-
This feature is in preview, starting from 3.4.1.
267
+
This feature is in preview, starting from 3.4.2.
268
268
269
269
Connection string overrides allow you to override the [default connection string](#connection-string), for example:
270
270
* Set one connection string for one http path prefix `/myapp1`.
@@ -456,7 +456,7 @@ You can enable code properties (_FileName_, _ClassName_, _MethodName_, _LineNumb
456
456
>
457
457
> This feature could add a performance overhead.
458
458
459
-
This feature is in preview, starting from 3.4.1.
459
+
This feature is in preview, starting from 3.4.2.
460
460
461
461
### LoggingLevel
462
462
@@ -502,7 +502,7 @@ To disable auto-collection of Micrometer metrics (including Spring Boot Actuator
502
502
503
503
Literal values in JDBC queries are masked by default in order to avoid accidentally capturing sensitive data.
504
504
505
-
Starting from 3.4.1, this behavior can be disabled if desired, e.g.
505
+
Starting from 3.4.2, this behavior can be disabled if desired, e.g.
506
506
507
507
```json
508
508
{
@@ -520,7 +520,7 @@ Starting from 3.4.1, this behavior can be disabled if desired, e.g.
520
520
521
521
Literal values in Mongo queries are masked by default in order to avoid accidentally capturing sensitive data.
522
522
523
-
Starting from 3.4.1, this behavior can be disabled if desired, e.g.
523
+
Starting from 3.4.2, this behavior can be disabled if desired, e.g.
524
524
525
525
```json
526
526
{
@@ -798,7 +798,7 @@ and the console, corresponding to this configuration:
798
798
`level` can be one of `OFF`, `ERROR`, `WARN`, `INFO`, `DEBUG`, or `TRACE`.
799
799
800
800
`path` can be an absolute or relative path. Relative paths are resolved against the directory where
801
-
`applicationinsights-agent-3.4.1.jar` is located.
801
+
`applicationinsights-agent-3.4.2.jar` is located.
802
802
803
803
`maxSizeMb` is the max size of the log file before it rolls over.
|`applicationinsights-core`| Update the version to `3.4.1` or later ||
23
-
|`applicationinsights-web`| Update the version to `3.4.1` or later, and remove the Application Insights web filter your `web.xml` file. ||
24
-
|`applicationinsights-web-auto`| Replace with `3.4.1` or later of `applicationinsights-web`||
22
+
|`applicationinsights-core`| Update the version to `3.4.2` or later ||
23
+
|`applicationinsights-web`| Update the version to `3.4.2` or later, and remove the Application Insights web filter your `web.xml` file. ||
24
+
|`applicationinsights-web-auto`| Replace with `3.4.2` or later of `applicationinsights-web`||
25
25
|`applicationinsights-logging-log4j1_2`| Remove the dependency and remove the Application Insights appender from your log4j configuration. | No longer needed since Log4j 1.2 is auto-instrumented in the 3.x Java agent. |
26
26
|`applicationinsights-logging-log4j2`| Remove the dependency and remove the Application Insights appender from your log4j configuration. | No longer needed since Log4j 2 is auto-instrumented in the 3.x Java agent. |
27
27
|`applicationinsights-logging-log4j1_2`| Remove the dependency and remove the Application Insights appender from your logback configuration. | No longer needed since Logback is auto-instrumented in the 3.x Java agent. |
28
-
|`applicationinsights-spring-boot-starter`| Replace with `3.4.1` or later of `applicationinsights-web`| The cloud role name will no longer default to `spring.application.name`, see the [3.x configuration docs](./java-standalone-config.md#cloud-role-name) for configuring the cloud role name. |
28
+
|`applicationinsights-spring-boot-starter`| Replace with `3.4.2` or later of `applicationinsights-web`| The cloud role name will no longer default to `spring.application.name`, see the [3.x configuration docs](./java-standalone-config.md#cloud-role-name) for configuring the cloud role name. |
29
29
30
30
## Step 2: Add the 3.x Java agent
31
31
32
32
Add the 3.x Java agent to your JVM command-line args, for example
0 commit comments