Skip to content

Commit 24bcec8

Browse files
committed
fix example
1 parent d7e2671 commit 24bcec8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

exporter/example_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import (
1010
"go.uber.org/zap"
1111

1212
"go.opentelemetry.io/collector/component"
13+
"go.opentelemetry.io/collector/config/configoptional"
1314
"go.opentelemetry.io/collector/config/configretry"
1415
"go.opentelemetry.io/collector/consumer"
1516
"go.opentelemetry.io/collector/exporter"
@@ -22,7 +23,7 @@ var typeStr = component.MustNewType("example")
2223

2324
// exampleConfig holds configuration settings for the exporter.
2425
type exampleConfig struct {
25-
QueueSettings exporterhelper.QueueBatchConfig
26+
QueueSettings configoptional.Optional[exporterhelper.QueueBatchConfig]
2627
BackOffConfig configretry.BackOffConfig
2728
}
2829

0 commit comments

Comments
 (0)