Skip to content

Commit d2da897

Browse files
committed
Document disabling ingestion sampling
1 parent 662e7ec commit d2da897

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

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

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,27 @@ Starting from verion 3.3.1, you can capture spans for a method in your applicati
430430
}
431431
```
432432

433+
## Disable ingestion sampling (preview)
434+
435+
By default, when the sampling percentage is 100%, and
436+
[ingestion sampling](https://learn.microsoft.com/en-us/azure/azure-monitor/app/sampling-classic-api#ingestion-sampling)
437+
is set to something less than 100%, then ingestion sampling is applied.
438+
439+
Note that this behavior also applies to rate-limited sampling when the rate limit is not exceeded,
440+
since in that case effectively 100% of telemetry is captured.
441+
442+
If you want to disable ingestion sampling:
443+
444+
```json
445+
{
446+
"preview": {
447+
"sampling": {
448+
"ingestionSamplingEnabled": false
449+
}
450+
}
451+
}
452+
```
453+
433454
## Autocollected logging
434455

435456
Log4j, Logback, JBoss Logging, and java.util.logging are autoinstrumented. Logging performed via these logging frameworks is autocollected.

0 commit comments

Comments
 (0)