1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2025-11-27 22:49:15 +02:00

Clamp batch size <= queue size (#5157)

This commit is contained in:
Tyler Yahn
2024-04-05 16:02:32 -07:00
committed by GitHub
parent 66284071de
commit 98d961b141
3 changed files with 31 additions and 6 deletions

View File

@@ -198,6 +198,7 @@ func newBatchingConfig(options []BatchingOption) batchingConfig {
clearLessThanOne[int](),
getenv[int](envarExpMaxBatchSize),
clearLessThanOne[int](),
clampMax[int](c.maxQSize.Value),
fallback[int](dfltExpMaxBatchSize),
)