From 249d837ba95074765bfa789657c4c5a5b5a8a27e Mon Sep 17 00:00:00 2001 From: Andrew Davis <1709934+Savid@users.noreply.github.com> Date: Mon, 14 Nov 2022 16:31:03 +1000 Subject: [PATCH] fix(sentry): http max_export_batch_size config name --- example_sentry.yaml | 4 ++-- pkg/sentry/output/http/config.go | 4 ++-- pkg/sentry/output/processor/batch.go | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/example_sentry.yaml b/example_sentry.yaml index 3d5b717c..2bc2fef3 100644 --- a/example_sentry.yaml +++ b/example_sentry.yaml @@ -22,7 +22,7 @@ outputs: ntp_server: pool.ntp.org headers: Authorization: Someb64Value - max_queue_size: 2048 + max_queue_size: 51200 batch_timeout: 5s export_timeout: 30s - batch_interval_seconds: 512 + max_export_batch_size: 512 diff --git a/pkg/sentry/output/http/config.go b/pkg/sentry/output/http/config.go index 1331ab1c..ee38ea02 100644 --- a/pkg/sentry/output/http/config.go +++ b/pkg/sentry/output/http/config.go @@ -8,10 +8,10 @@ import ( type Config struct { Address string `yaml:"address"` Headers map[string]string `yaml:"headers"` - MaxQueueSize int `yaml:"max_queue_size" default:"2048"` + MaxQueueSize int `yaml:"max_queue_size" default:"51200"` BatchTimeout time.Duration `yaml:"batch_timeout" default:"5s"` ExportTimeout time.Duration `yaml:"export_timeout" default:"30s"` - MaxExportBatchSize int `yaml:"batch_interval_seconds" default:"512"` + MaxExportBatchSize int `yaml:"max_export_batch_size" default:"512"` } func (c *Config) Validate() error { diff --git a/pkg/sentry/output/processor/batch.go b/pkg/sentry/output/processor/batch.go index ae1566d4..b1a99b9d 100644 --- a/pkg/sentry/output/processor/batch.go +++ b/pkg/sentry/output/processor/batch.go @@ -41,7 +41,7 @@ type EventExporter interface { // Defaults for BatchDecoratedEventProcessorOptions. const ( - DefaultMaxQueueSize = 2048 + DefaultMaxQueueSize = 51200 DefaultScheduleDelay = 5000 DefaultExportTimeout = 30000 DefaultMaxExportBatchSize = 512 @@ -55,7 +55,7 @@ type BatchDecoratedEventProcessorOption func(o *BatchDecoratedEventProcessorOpti type BatchDecoratedEventProcessorOptions struct { // MaxQueueSize is the maximum queue size to buffer events for delayed processing. If the // queue gets full it drops the events. - // The default value of MaxQueueSize is 2048. + // The default value of MaxQueueSize is 51200. MaxQueueSize int // BatchTimeout is the maximum duration for constructing a batch. Processor