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
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,7 +42,7 @@ Download the [applicationinsights-agent-3.4.2.jar](https://github.com/microsoft/
42
42
>
43
43
> Starting from 3.3.0:
44
44
>
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)
46
46
> - Exception records are no longer recorded for failed dependencies, they are only recorded for failed requests.
Copy file name to clipboardExpand all lines: articles/azure-monitor/app/java-standalone-config.md
+13-22Lines changed: 13 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,6 +57,8 @@ Connection string is required. You can find your connection string in your Appli
57
57
58
58
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.
59
59
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
+
60
62
You can also set the connection string by specifying a file to load the connection string from.
61
63
62
64
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
127
129
128
130
### Rate-limited sampling
129
131
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.
131
133
132
134
If no sampling has been configured, the default is now rate-limited sampling configured to capture at most
133
135
(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
245
247
246
248
## Connection string overrides (preview)
247
249
248
-
This feature is in preview, starting from 3.4.2.
250
+
This feature is in preview, starting from 3.4.0.
249
251
250
252
Connection string overrides allow you to override the [default connection string](#connection-string). For example, you can:
251
253
@@ -396,31 +398,22 @@ You can use these valid `level` values to specify in the `applicationinsights.js
396
398
> | project timestamp, message, itemType
397
399
> ```
398
400
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)
404
402
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:
412
404
413
405
```json
414
406
{
415
407
"preview": {
408
+
"captureLogbackMarker": true,
416
409
"captureLog4jMarker": true
417
410
}
418
411
}
419
412
```
420
413
421
-
This feature is in preview, starting from 3.4.2.
414
+
### Additional log attributes for Logback (preview)
422
415
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:
424
417
425
418
```json
426
419
{
@@ -432,11 +425,9 @@ You can enable code properties, such as `FileName`, `ClassName`, `MethodName`, a
432
425
433
426
> [!WARNING]
434
427
>
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.
438
429
439
-
### LoggingLevel
430
+
### Logging level as a custom dimension
440
431
441
432
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.
442
433
@@ -475,7 +466,7 @@ To disable auto-collection of Micrometer metrics and Spring Boot Actuator metric
475
466
476
467
Literal values in JDBC queries are masked by default to avoid accidentally capturing sensitive data.
477
468
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:
479
470
480
471
```json
481
472
{
@@ -493,7 +484,7 @@ Starting from 3.4.2, this behavior can be disabled. For example:
493
484
494
485
Literal values in Mongo queries are masked by default to avoid accidentally capturing sensitive data.
495
486
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:
0 commit comments