From 46f2b2c4115d19a1765fb502841625e400108849 Mon Sep 17 00:00:00 2001 From: Murphy Chen Date: Tue, 8 Oct 2024 23:05:13 +0800 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Tyler Yahn --- sdk/log/batch.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/sdk/log/batch.go b/sdk/log/batch.go index 42888b1934bf..1c6e9bfc9731 100644 --- a/sdk/log/batch.go +++ b/sdk/log/batch.go @@ -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 {