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
@@ -2,7 +2,7 @@
2
2
title: Azure Monitor Application Insights Java
3
3
description: Application performance monitoring for Java applications running in any environment without requiring code modification. Distributed tracing and application map.
4
4
ms.topic: conceptual
5
-
ms.date: 12/05/2022
5
+
ms.date: 12/07/2022
6
6
ms.devlang: java
7
7
ms.custom: devx-track-java, ignite-2022
8
8
ms.reviewer: mmcc
@@ -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.5.jar](https://github.com/microsoft/ApplicationInsights-Java/releases/download/3.4.5/applicationinsights-agent-3.4.5.jar) file.
33
+
Download the [applicationinsights-agent-3.4.6.jar](https://github.com/microsoft/ApplicationInsights-Java/releases/download/3.4.6/applicationinsights-agent-3.4.6.jar) file.
34
34
35
35
> [!WARNING]
36
36
>
@@ -62,7 +62,7 @@ Download the [applicationinsights-agent-3.4.5.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.5.jar"` to your application's JVM args.
65
+
Add `-javaagent:"path/to/applicationinsights-agent-3.4.6.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.5.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.5.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.6.jar` with the following content:
If you're using the *exec* form, add the parameter `-javaagent:"path/to/applicationinsights-agent-3.4.5.jar"` to the parameter list somewhere before the `"-jar"` parameter, for example:
24
+
If you're using the *exec* form, add the parameter `-javaagent:"path/to/applicationinsights-agent-3.4.6.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.4.5.jar` to `CATALINA_OPTS`.
49
+
If the file `<tomcat>/bin/setenv.sh` already exists, then modify that file and add `-javaagent:path/to/applicationinsights-agent-3.4.6.jar` to `CATALINA_OPTS`.
50
50
51
51
52
52
## Tomcat 8 (Windows)
@@ -56,36 +56,36 @@ If the file `<tomcat>/bin/setenv.sh` already exists, then modify that file and a
56
56
Locate the file `<tomcat>/bin/catalina.bat`. Create a new file in the same directory named `<tomcat>/bin/setenv.bat` with the following content:
57
57
58
58
```
59
-
set CATALINA_OPTS=%CATALINA_OPTS% -javaagent:path/to/applicationinsights-agent-3.4.5.jar
59
+
set CATALINA_OPTS=%CATALINA_OPTS% -javaagent:path/to/applicationinsights-agent-3.4.6.jar
60
60
```
61
61
62
62
Quotes aren't necessary, but if you want to include them, the proper placement is:
63
63
64
64
```
65
-
set "CATALINA_OPTS=%CATALINA_OPTS% -javaagent:path/to/applicationinsights-agent-3.4.5.jar"
65
+
set "CATALINA_OPTS=%CATALINA_OPTS% -javaagent:path/to/applicationinsights-agent-3.4.6.jar"
66
66
```
67
67
68
-
If the file `<tomcat>/bin/setenv.bat` already exists, just modify that file and add `-javaagent:path/to/applicationinsights-agent-3.4.5.jar` to `CATALINA_OPTS`.
68
+
If the file `<tomcat>/bin/setenv.bat` already exists, just modify that file and add `-javaagent:path/to/applicationinsights-agent-3.4.6.jar` to `CATALINA_OPTS`.
69
69
70
70
### Running Tomcat as a Windows service
71
71
72
-
Locate the file `<tomcat>/bin/tomcat8w.exe`. Run that executable and add `-javaagent:path/to/applicationinsights-agent-3.4.5.jar` to the `Java Options` under the `Java` tab.
72
+
Locate the file `<tomcat>/bin/tomcat8w.exe`. Run that executable and add `-javaagent:path/to/applicationinsights-agent-3.4.6.jar` to the `Java Options` under the `Java` tab.
73
73
74
74
75
75
## JBoss EAP 7
76
76
77
77
### Standalone server
78
78
79
-
Add `-javaagent:path/to/applicationinsights-agent-3.4.5.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):
79
+
Add `-javaagent:path/to/applicationinsights-agent-3.4.6.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
@@ -2,7 +2,7 @@
2
2
title: Configuration options - Azure Monitor Application Insights for Java
3
3
description: This article shows you how to configure Azure Monitor Application Insights for Java.
4
4
ms.topic: conceptual
5
-
ms.date: 12/05/2022
5
+
ms.date: 12/07/2022
6
6
ms.devlang: java
7
7
ms.custom: devx-track-java
8
8
ms.reviewer: mmcc
@@ -31,14 +31,14 @@ You'll find more information and configuration options in the following sections
31
31
32
32
## Configuration file path
33
33
34
-
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.5.jar`.
34
+
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.6.jar`.
35
35
36
36
You can specify your own configuration file path by using one of these two options:
*`applicationinsights.configuration.file` Java system property
40
40
41
-
If you specify a relative path, it will be resolved relative to the directory where `applicationinsights-agent-3.4.5.jar` is located.
41
+
If you specify a relative path, it will be resolved relative to the directory where `applicationinsights-agent-3.4.6.jar` is located.
42
42
43
43
Alternatively, instead of using a configuration file, you can specify the entire _content_ of the JSON configuration via the environment variable `APPLICATIONINSIGHTS_CONFIGURATION_CONTENT`.
44
44
@@ -61,7 +61,7 @@ Or you can set the connection string by using the Java system property `applicat
61
61
62
62
You can also set the connection string by specifying a file to load the connection string from.
63
63
64
-
If you specify a relative path, it's resolved relative to the directory where `applicationinsights-agent-3.4.5.jar` is located.
64
+
If you specify a relative path, it's resolved relative to the directory where `applicationinsights-agent-3.4.6.jar` is located.
65
65
66
66
```json
67
67
{
@@ -752,7 +752,7 @@ In the preceding configuration example:
752
752
753
753
*`level` can be one of `OFF`, `ERROR`, `WARN`, `INFO`, `DEBUG`, or `TRACE`.
754
754
*`path` can be an absolute or relative path. Relative paths are resolved against the directory where
755
-
`applicationinsights-agent-3.4.5.jar` is located.
755
+
`applicationinsights-agent-3.4.6.jar` is located.
756
756
757
757
Starting from version 3.0.2, you can also set the self-diagnostics `level` by using the environment variable
758
758
`APPLICATIONINSIGHTS_SELF_DIAGNOSTICS_LEVEL`. It then takes precedence over the self-diagnostics level specified in the JSON configuration.
0 commit comments