Skip to content

Commit d167e20

Browse files
Merge pull request #216110 from trask/updates
Misc updates
2 parents 4609f91 + 5c55a88 commit d167e20

File tree

2 files changed

+14
-23
lines changed

2 files changed

+14
-23
lines changed

articles/azure-monitor/app/java-in-process-agent.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Download the [applicationinsights-agent-3.4.2.jar](https://github.com/microsoft/
4242
>
4343
> Starting from 3.3.0:
4444
>
45-
> - `LoggingLevel` is not captured by default as part of Traces' custom dimension since that data is already captured in the `SeverityLevel` field. For details on how to re-enable this if needed, please see the [config options](./java-standalone-config.md#logginglevel)
45+
> - `LoggingLevel` is not captured by default as part of Traces' custom dimension since that data is already captured in the `SeverityLevel` field. For details on how to re-enable this if needed, please see the [config options](./java-standalone-config.md#logging-level-as-a-custom-dimension)
4646
> - Exception records are no longer recorded for failed dependencies, they are only recorded for failed requests.
4747
>
4848
> Starting from 3.2.0:

articles/azure-monitor/app/java-standalone-config.md

Lines changed: 13 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ Connection string is required. You can find your connection string in your Appli
5757

5858
You can also set the connection string by using the environment variable `APPLICATIONINSIGHTS_CONNECTION_STRING`. It then takes precedence over the connection string specified in the JSON configuration.
5959

60+
Or you can set the connection string by using the Java system property `applicationinsights.connection.string`. It also takes precedence over the connection string specified in the JSON configuration.
61+
6062
You can also set the connection string by specifying a file to load the connection string from.
6163

6264
If you specify a relative path, it's resolved relative to the directory where `applicationinsights-agent-3.4.2.jar` is located.
@@ -127,7 +129,7 @@ Sampling is also based on trace ID to help ensure consistent sampling decisions
127129

128130
### Rate-limited sampling
129131

130-
Starting from 3.4.2, rate-limited sampling is available and is now the default.
132+
Starting from 3.4.0, rate-limited sampling is available and is now the default.
131133

132134
If no sampling has been configured, the default is now rate-limited sampling configured to capture at most
133135
(approximately) 5 requests per second, along with all the dependencies and logs on those requests.
@@ -245,7 +247,7 @@ Starting from version 3.2.0, if you want to set a custom dimension programmatica
245247

246248
## Connection string overrides (preview)
247249

248-
This feature is in preview, starting from 3.4.2.
250+
This feature is in preview, starting from 3.4.0.
249251

250252
Connection string overrides allow you to override the [default connection string](#connection-string). For example, you can:
251253

@@ -396,31 +398,22 @@ You can use these valid `level` values to specify in the `applicationinsights.js
396398
> | project timestamp, message, itemType
397399
> ```
398400
399-
### Log markers for Logback and Log4j 2 (preview)
400-
401-
Log markers are disabled by default.
402-
403-
You can enable the `Marker` property for Logback and Log4j 2:
401+
### Log markers (preview)
404402
405-
```json
406-
{
407-
"preview": {
408-
"captureLogbackMarker": true
409-
}
410-
}
411-
```
403+
Starting from 3.4.2, you can capture the log markers for Logback and Log4j 2:
412404
413405
```json
414406
{
415407
"preview": {
408+
"captureLogbackMarker": true,
416409
"captureLog4jMarker": true
417410
}
418411
}
419412
```
420413
421-
This feature is in preview, starting from 3.4.2.
414+
### Additional log attributes for Logback (preview)
422415

423-
You can enable code properties, such as `FileName`, `ClassName`, `MethodName`, and `LineNumber`, for Logback:
416+
Starting from 3.4.2, you can capture `FileName`, `ClassName`, `MethodName`, and `LineNumber`, for Logback:
424417

425418
```json
426419
{
@@ -432,11 +425,9 @@ You can enable code properties, such as `FileName`, `ClassName`, `MethodName`, a
432425

433426
> [!WARNING]
434427
>
435-
> This feature could add a performance overhead.
436-
437-
This feature is in preview, starting from 3.4.2.
428+
> Capturing these additional log attributes can add a performance overhead.
438429
439-
### LoggingLevel
430+
### Logging level as a custom dimension
440431

441432
Starting from version 3.3.0, `LoggingLevel` isn't captured by default as part of the Traces custom dimension because that data is already captured in the `SeverityLevel` field.
442433

@@ -475,7 +466,7 @@ To disable auto-collection of Micrometer metrics and Spring Boot Actuator metric
475466

476467
Literal values in JDBC queries are masked by default to avoid accidentally capturing sensitive data.
477468

478-
Starting from 3.4.2, this behavior can be disabled. For example:
469+
Starting from 3.4.0, this behavior can be disabled. For example:
479470

480471
```json
481472
{
@@ -493,7 +484,7 @@ Starting from 3.4.2, this behavior can be disabled. For example:
493484

494485
Literal values in Mongo queries are masked by default to avoid accidentally capturing sensitive data.
495486

496-
Starting from 3.4.2, this behavior can be disabled. For example:
487+
Starting from 3.4.0, this behavior can be disabled. For example:
497488

498489
```json
499490
{

0 commit comments

Comments
 (0)