Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Tyler Yahn <[email protected]>
  • Loading branch information
Frapschen and MrAlias committed Oct 9, 2024
1 parent 6cd298d commit 17847ff
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions sdk/log/batch.go
Original file line number Diff line number Diff line change
Expand Up @@ -464,14 +464,10 @@ func WithExportMaxBatchSize(size int) BatchProcessorOption {
})
}

// WithExportBufferSize sets the buffer size of batch in every export.
// WithExportBufferSize sets the batch buffer size.
// Batches will be temporarily kept in a memory buffer until it exported successfully.
//
// If the OTEL_BLRP_EXPORT_BUFFER_SIZE environment variable is set,
// and this option is not passed, that variable value will be used.
//
// By default, if an environment variable is not set, and this option is not
// passed, 1 will be used.
// By default a size of 1 will be used.
// The default value is also used when the provided value is less than one.
func WithExportBufferSize(size int) BatchProcessorOption {
return batchOptionFunc(func(cfg batchConfig) batchConfig {
Expand Down

0 comments on commit 17847ff

Please sign in to comment.