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
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ This section shows you how to download the auto-instrumentation jar file.
29
29
30
30
#### Download the jar file
31
31
32
-
Download the [applicationinsights-agent-3.2.10.jar](https://github.com/microsoft/ApplicationInsights-Java/releases/download/3.2.10/applicationinsights-agent-3.2.10.jar) file.
32
+
Download the [applicationinsights-agent-3.2.11.jar](https://github.com/microsoft/ApplicationInsights-Java/releases/download/3.2.11/applicationinsights-agent-3.2.11.jar) file.
33
33
34
34
> [!WARNING]
35
35
>
@@ -51,7 +51,7 @@ Download the [applicationinsights-agent-3.2.10.jar](https://github.com/microsoft
51
51
52
52
#### Point the JVM to the jar file
53
53
54
-
Add `-javaagent:path/to/applicationinsights-agent-3.2.10.jar` to your application's JVM args.
54
+
Add `-javaagent:path/to/applicationinsights-agent-3.2.11.jar` to your application's JVM args.
55
55
56
56
> [!TIP]
57
57
> For help with configuring your application's JVM args, see [Tips for updating your JVM args](./java-standalone-arguments.md).
@@ -66,7 +66,7 @@ Add `-javaagent:path/to/applicationinsights-agent-3.2.10.jar` to your applicatio
66
66
APPLICATIONINSIGHTS_CONNECTION_STRING = <Copy connection string from Application Insights Resource Overview>
67
67
```
68
68
69
-
- Or you can create a configuration file named `applicationinsights.json`. Place it in the same directory as `applicationinsights-agent-3.2.10.jar` with the following content:
69
+
- Or you can create a configuration file named `applicationinsights.json`. Place it in the same directory as `applicationinsights-agent-3.2.11.jar` with the following content:
70
70
71
71
```json
72
72
{
@@ -367,7 +367,7 @@ If you want to attach custom dimensions to your logs, use [Log4j 1.2 MDC](https:
367
367
368
368
### Send custom telemetry by using the 2.x SDK
369
369
370
-
1. Add `applicationinsights-core-2.6.4.jar` to your application. All 2.x versions are supported by Application Insights Java 3.x. If you have a choice. it's worth using the latest version:
370
+
1. Add `applicationinsights-core-2.6.4.jar` to your application. All 2.x versions are supported by Application Insights Java 3.x. If you have a choice, it's worth using the latest version:
If you're using the *exec* form, add the parameter `"-javaagent:path/to/applicationinsights-agent-3.2.10.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.11.jar"` to the parameter list somewhere before the `"-jar"` parameter, for example:
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.2.10.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.11.jar` to `CATALINA_OPTS`.
57
57
58
58
59
59
## Tomcat 8 (Windows)
@@ -63,36 +63,36 @@ If the file `<tomcat>/bin/setenv.sh` already exists, then modify that file and a
63
63
Locate the file `<tomcat>/bin/catalina.bat`. Create a new file in the same directory named `<tomcat>/bin/setenv.bat` with the following content:
64
64
65
65
```
66
-
set CATALINA_OPTS=%CATALINA_OPTS% -javaagent:path/to/applicationinsights-agent-3.2.10.jar
66
+
set CATALINA_OPTS=%CATALINA_OPTS% -javaagent:path/to/applicationinsights-agent-3.2.11.jar
67
67
```
68
68
69
69
Quotes aren't necessary, but if you want to include them, the proper placement is:
70
70
71
71
```
72
-
set "CATALINA_OPTS=%CATALINA_OPTS% -javaagent:path/to/applicationinsights-agent-3.2.10.jar"
72
+
set "CATALINA_OPTS=%CATALINA_OPTS% -javaagent:path/to/applicationinsights-agent-3.2.11.jar"
73
73
```
74
74
75
-
If the file `<tomcat>/bin/setenv.bat` already exists, just modify that file and add `-javaagent:path/to/applicationinsights-agent-3.2.10.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.11.jar` to `CATALINA_OPTS`.
76
76
77
77
### Running Tomcat as a Windows service
78
78
79
-
Locate the file `<tomcat>/bin/tomcat8w.exe`. Run that executable and add `-javaagent:path/to/applicationinsights-agent-3.2.10.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.11.jar` to the `Java Options` under the `Java` tab.
80
80
81
81
82
82
## JBoss EAP 7
83
83
84
84
### Standalone server
85
85
86
-
Add `-javaagent:path/to/applicationinsights-agent-3.2.10.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.11.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
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,14 +37,14 @@ You will find more details and additional configuration options below.
37
37
38
38
## Configuration file path
39
39
40
-
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.10.jar`.
40
+
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.11.jar`.
41
41
42
42
You can specify your own configuration file path using either
43
43
44
44
*`APPLICATIONINSIGHTS_CONFIGURATION_FILE` environment variable, or
45
45
*`applicationinsights.configuration.file` Java system property
46
46
47
-
If you specify a relative path, it will be resolved relative to the directory where `applicationinsights-agent-3.2.10.jar` is located.
47
+
If you specify a relative path, it will be resolved relative to the directory where `applicationinsights-agent-3.2.11.jar` is located.
48
48
49
49
Alternatively, instead of using a configuration file, you can specify the entire _content_ of the json configuration
50
50
via the environment variable `APPLICATIONINSIGHTS_CONFIGURATION_CONTENT`.
@@ -67,7 +67,7 @@ You can also set the connection string using the environment variable `APPLICATI
67
67
68
68
You can also set the connection string by specifying a file to load the connection string from.
69
69
70
-
If you specify a relative path, it will be resolved relative to the directory where `applicationinsights-agent-3.2.10.jar` is located.
70
+
If you specify a relative path, it will be resolved relative to the directory where `applicationinsights-agent-3.2.11.jar` is located.
71
71
72
72
```json
73
73
{
@@ -342,7 +342,7 @@ To disable auto-collection of Micrometer metrics (including Spring Boot Actuator
342
342
343
343
## HTTP headers
344
344
345
-
Starting from 3.2.10, you can capture request and response headers on your server (request) telemetry:
345
+
Starting from 3.2.11, you can capture request and response headers on your server (request) telemetry:
346
346
347
347
```json
348
348
{
@@ -388,7 +388,7 @@ Again, the header names are case-insensitive, and the examples above will be cap
388
388
389
389
By default, http server requests that result in 4xx response codes are captured as errors.
390
390
391
-
Starting from version 3.2.10, you can change this behavior to capture them as success if you prefer:
391
+
Starting from version 3.2.11, you can change this behavior to capture them as success if you prefer:
392
392
393
393
```json
394
394
{
@@ -490,7 +490,7 @@ Starting from version 3.2.0, the following preview instrumentations can be enabl
490
490
```
491
491
> [!NOTE]
492
492
> Akka instrumentation is available starting from version 3.2.2
493
-
> Vertx HTTP Library instrumentation is available starting from version 3.2.10
493
+
> Vertx HTTP Library instrumentation is available starting from version 3.2.11
494
494
495
495
## Metric interval
496
496
@@ -585,7 +585,7 @@ and the console, corresponding to this configuration:
585
585
`level` can be one of `OFF`, `ERROR`, `WARN`, `INFO`, `DEBUG`, or `TRACE`.
586
586
587
587
`path` can be an absolute or relative path. Relative paths are resolved against the directory where
588
-
`applicationinsights-agent-3.2.10.jar` is located.
588
+
`applicationinsights-agent-3.2.11.jar` is located.
589
589
590
590
`maxSizeMb` is the max size of the log file before it rolls over.
0 commit comments