Skip to content

Commit b4a5d50

Browse files
committed
Fix swapped config.
1 parent be445b4 commit b4a5d50

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

go/config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ func defaultConfig() observabilityConfig {
4343
otlpEndpoint: defaults.DefaultOTLPEndpoint,
4444
spanMaxExportBatchSize: sdktrace.DefaultMaxExportBatchSize,
4545
spanMaxQueueSize: sdktrace.DefaultMaxQueueSize,
46-
logMaxExportBatchSize: defaultLogMaxQueueSize,
47-
logMaxQueueSize: defaultLogMaxExportBatchSize,
46+
logMaxExportBatchSize: defaultLogMaxExportBatchSize,
47+
logMaxQueueSize: defaultLogMaxQueueSize,
4848
}
4949
}
5050

go/config_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ func TestDefaultConfig(t *testing.T) {
3030
t.Errorf("Expected default spanMaxQueueSize to be %d, got %d", sdktrace.DefaultMaxQueueSize, config.spanMaxQueueSize)
3131
}
3232

33-
if config.logMaxExportBatchSize != 2048 {
34-
t.Errorf("Expected default logMaxExportBatchSize to be %d, got %d", defaultLogMaxQueueSize, config.logMaxExportBatchSize)
33+
if config.logMaxExportBatchSize != 512 {
34+
t.Errorf("Expected default logMaxExportBatchSize to be %d, got %d", defaultLogMaxExportBatchSize, config.logMaxExportBatchSize)
3535
}
3636

37-
if config.logMaxQueueSize != 512 {
38-
t.Errorf("Expected default logMaxQueueSize to be %d, got %d", defaultLogMaxExportBatchSize, config.logMaxQueueSize)
37+
if config.logMaxQueueSize != 2048 {
38+
t.Errorf("Expected default logMaxQueueSize to be %d, got %d", defaultLogMaxQueueSize, config.logMaxQueueSize)
3939
}
4040

4141
// Test that optional fields are zero values

0 commit comments

Comments
 (0)