Skip to content

Commit 0d62e4f

Browse files
authored
[chore] [exporterhelper] Update stale batchSender comments (#9884)
Update comment as fields may have been renamed.
1 parent fd0d0da commit 0d62e4f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

exporter/exporterhelper/batch_sender.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,16 @@ import (
1818

1919
// batchSender is a component that places requests into batches before passing them to the downstream senders.
2020
// Batches are sent out with any of the following conditions:
21-
// - batch size reaches cfg.SendBatchSize
22-
// - cfg.Timeout is elapsed since the timestamp when the previous batch was sent out.
21+
// - batch size reaches cfg.MinSizeItems
22+
// - cfg.FlushTimeout is elapsed since the timestamp when the previous batch was sent out.
2323
// - concurrencyLimit is reached.
2424
type batchSender struct {
2525
baseRequestSender
2626
cfg exporterbatcher.Config
2727
mergeFunc exporterbatcher.BatchMergeFunc[Request]
2828
mergeSplitFunc exporterbatcher.BatchMergeSplitFunc[Request]
2929

30-
// concurrencyLimit is the maximum number of goroutines that can be created by the batcher.
30+
// concurrencyLimit is the maximum number of goroutines that can be blocked by the batcher.
3131
// If this number is reached and all the goroutines are busy, the batch will be sent right away.
3232
// Populated from the number of queue consumers if queue is enabled.
3333
concurrencyLimit uint64

0 commit comments

Comments
 (0)