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. The article also discusses distributed tracing and the application map.
4
4
ms.topic: conceptual
5
-
ms.date: 12/14/2022
5
+
ms.date: 01/18/2023
6
6
ms.devlang: java
7
7
ms.custom: devx-track-java, ignite-2022
8
8
ms.reviewer: mmcc
@@ -32,7 +32,7 @@ This section shows you how to download the auto-instrumentation jar file.
32
32
33
33
#### Download the jar file
34
34
35
-
Download the [applicationinsights-agent-3.4.7.jar](https://github.com/microsoft/ApplicationInsights-Java/releases/download/3.4.7/applicationinsights-agent-3.4.7.jar) file.
35
+
Download the [applicationinsights-agent-3.4.8.jar](https://github.com/microsoft/ApplicationInsights-Java/releases/download/3.4.8/applicationinsights-agent-3.4.8.jar) file.
36
36
37
37
> [!WARNING]
38
38
>
@@ -63,7 +63,7 @@ Download the [applicationinsights-agent-3.4.7.jar](https://github.com/microsoft/
63
63
64
64
#### Point the JVM to the jar file
65
65
66
-
Add `-javaagent:"path/to/applicationinsights-agent-3.4.7.jar"` to your application's JVM args.
66
+
Add `-javaagent:"path/to/applicationinsights-agent-3.4.8.jar"` to your application's JVM args.
67
67
68
68
> [!TIP]
69
69
> For help with configuring your application's JVM args, see [Tips for updating your JVM args](./java-standalone-arguments.md).
@@ -80,7 +80,7 @@ If you develop a Spring Boot application, you can replace the JVM argument by a
80
80
APPLICATIONINSIGHTS_CONNECTION_STRING=<Copy connection string from Application Insights Resource Overview>
81
81
```
82
82
83
-
- Create a configuration file named `applicationinsights.json`. Place it in the same directory as `applicationinsights-agent-3.4.7.jar` with the following content:
83
+
- Create a configuration file named `applicationinsights.json`. Place it in the same directory as `applicationinsights-agent-3.4.8.jar` with the following content:
If you're using the *exec* form, add the parameter `-javaagent:"path/to/applicationinsights-agent-3.4.7.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.8.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), 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.7.jar` to `CATALINA_OPTS`.
48
+
If the file `<tomcat>/bin/setenv.sh` already exists, modify that file and add `-javaagent:path/to/applicationinsights-agent-3.4.8.jar` to `CATALINA_OPTS`.
49
49
50
50
## Tomcat 8 (Windows)
51
51
@@ -54,35 +54,35 @@ If the file `<tomcat>/bin/setenv.sh` already exists, modify that file and add `-
54
54
Locate the file `<tomcat>/bin/catalina.bat`. Create a new file in the same directory named `<tomcat>/bin/setenv.bat` with the following content:
55
55
56
56
```
57
-
set CATALINA_OPTS=%CATALINA_OPTS% -javaagent:path/to/applicationinsights-agent-3.4.7.jar
57
+
set CATALINA_OPTS=%CATALINA_OPTS% -javaagent:path/to/applicationinsights-agent-3.4.8.jar
58
58
```
59
59
60
60
Quotes aren't necessary, but if you want to include them, the proper placement is:
61
61
62
62
```
63
-
set "CATALINA_OPTS=%CATALINA_OPTS% -javaagent:path/to/applicationinsights-agent-3.4.7.jar"
63
+
set "CATALINA_OPTS=%CATALINA_OPTS% -javaagent:path/to/applicationinsights-agent-3.4.8.jar"
64
64
```
65
65
66
-
If the file `<tomcat>/bin/setenv.bat` already exists, modify that file and add `-javaagent:path/to/applicationinsights-agent-3.4.7.jar` to `CATALINA_OPTS`.
66
+
If the file `<tomcat>/bin/setenv.bat` already exists, modify that file and add `-javaagent:path/to/applicationinsights-agent-3.4.8.jar` to `CATALINA_OPTS`.
67
67
68
68
### Run Tomcat as a Windows service
69
69
70
-
Locate the file `<tomcat>/bin/tomcat8w.exe`. Run that executable and add `-javaagent:path/to/applicationinsights-agent-3.4.7.jar` to the `Java Options` under the `Java` tab.
70
+
Locate the file `<tomcat>/bin/tomcat8w.exe`. Run that executable and add `-javaagent:path/to/applicationinsights-agent-3.4.8.jar` to the `Java Options` under the `Java` tab.
71
71
72
72
## JBoss EAP 7
73
73
74
74
### Standalone server
75
75
76
-
Add `-javaagent:path/to/applicationinsights-agent-3.4.7.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):
76
+
Add `-javaagent:path/to/applicationinsights-agent-3.4.8.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
+33-5Lines changed: 33 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/14/2022
5
+
ms.date: 01/18/2023
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.7.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.8.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.7.jar` is located.
41
+
If you specify a relative path, it will be resolved relative to the directory where `applicationinsights-agent-3.4.8.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.7.jar` is located.
64
+
If you specify a relative path, it's resolved relative to the directory where `applicationinsights-agent-3.4.8.jar` is located.
65
65
66
66
```json
67
67
{
@@ -323,6 +323,34 @@ Cloud role name overrides allow you to override the [default cloud role name](#c
323
323
}
324
324
```
325
325
326
+
## Connection string configured at runtime
327
+
328
+
Starting from version 3.4.8, if you need the ability to configure the connection string at runtime,
329
+
add this property to your json configuration:
330
+
331
+
```json
332
+
{
333
+
"connectionStringConfiguredAtRuntime": true
334
+
}
335
+
```
336
+
337
+
and add `applicationinsights-core` to your application:
338
+
339
+
```xml
340
+
<dependency>
341
+
<groupId>com.microsoft.azure</groupId>
342
+
<artifactId>applicationinsights-core</artifactId>
343
+
<version>3.4.8</version>
344
+
</dependency>
345
+
```
346
+
347
+
and use the static `configure(String)` method in the class
title: Quickstart - Add volume indicator to your Web calling app
3
+
titleSuffix: An Azure Communication Services quickstart
4
+
description: In this quickstart, you'll learn how to check call volume within your Web app when using Azure Communication Services.
5
+
author: sloanster
6
+
7
+
ms.author: micahvivion
8
+
ms.date: 1/18/2023
9
+
ms.topic: quickstart
10
+
ms.service: azure-communication-services
11
+
ms.subservice: calling
12
+
ms.custom: mode-other
13
+
---
14
+
15
+
# Accessing call volume level
16
+
As a developer you can have control over checking microphone volume in JavaScript. This quickstart shows examples of how to accomplish this within the ACS WebJS.
> The quick start examples here are available starting on the public preview version [1.9.1-beta.1](https://www.npmjs.com/package/@azure/communication-calling/v/1.9.1-beta.1) of the calling Web SDK. Make sure to use that SDK version or newer when trying this quickstart.
23
+
24
+
## Checking the audio stream volume
25
+
As a developer it can be nice to have the ability to check and display to end users the current microphone volume. ACS calling API exposes this information using `getVolume`. The `getVolume` value is a number ranging from 0 to 100 (with 0 noting zero audio detected, 100 as the max level detectable). This value iss sampled every 200 ms to get near real time value of volume.
26
+
27
+
### Example usage
28
+
Sample code to get volume of selected microphone. This example shows how to generate the volume level by accessing `getVolume`.
0 commit comments