Skip to content

Commit 008daaa

Browse files
committed
half fixed
1 parent cf5572c commit 008daaa

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

exporter/otelarrowexporter/factory.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,13 @@ func createDefaultConfig() component.Config {
7878
}
7979
}
8080

81-
func helperOptions(e exp) []exporterhelper.Option {
81+
func helperOptions(e exp, qbs exporterhelper.QueueBatchSettings) []exporterhelper.Option {
8282
cfg := e.getConfig().(*Config)
8383
return []exporterhelper.Option{
8484
exporterhelper.WithCapabilities(consumer.Capabilities{MutatesData: false}),
8585
exporterhelper.WithTimeout(cfg.TimeoutSettings),
8686
exporterhelper.WithRetry(cfg.RetryConfig),
87-
exporterhelper.WithQueue(cfg.QueueSettings),
87+
exporterhelper.WithQueueBatch(cfg.QueueSettings, qbs),
8888
exporterhelper.WithStart(e.start),
8989
exporterhelper.WithShutdown(e.shutdown),
9090
}
@@ -115,7 +115,7 @@ func createTracesExporter(
115115
}
116116
return exporterhelper.NewTraces(ctx, e.getSettings(), e.getConfig(),
117117
e.pushTraces,
118-
helperOptions(e)...,
118+
helperOptions(e, exporterhelper.NewTracesQueueBatchSettings())...,
119119
)
120120
}
121121

@@ -134,7 +134,7 @@ func createMetricsExporter(
134134
}
135135
return exporterhelper.NewMetrics(ctx, e.getSettings(), e.getConfig(),
136136
e.pushMetrics,
137-
helperOptions(e)...,
137+
helperOptions(e, exporterhelper.NewMetricsQueueBatchSettings())...,
138138
)
139139
}
140140

@@ -153,6 +153,6 @@ func createLogsExporter(
153153
}
154154
return exporterhelper.NewLogs(ctx, e.getSettings(), e.getConfig(),
155155
e.pushLogs,
156-
helperOptions(e)...,
156+
helperOptions(e, exporterhelper.NewLogsQueueBatchSettings())...,
157157
)
158158
}

0 commit comments

Comments
 (0)