Skip to content

Commit cf9728a

Browse files
Merge pull request #277440 from trask/ingestion-sampling-disabled
Document how to disable ingestion sampling
2 parents efbfbd8 + c4992e0 commit cf9728a

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+
## Locally disabling ingestion sampling (preview)
434+
435+
By default, when the effective sampling percentage in the Java agent is 100%
436+
and [ingestion sampling](./sampling-classic-api.md#ingestion-sampling) has been configured,
437+
then the ingestion sampling percentage will be applied.
438+
439+
Note that this behavior applies to both fixed-rate sampling of 100% and also applies to rate-limited sampling when the
440+
request rate doesn't exceed the rate limit (effectively capturing 100% during the continuously sliding time window).
441+
442+
To manually disable ingestion sampling (and keep 100% of telemetry in these cases even when ingestion sampling has been configured):
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)