@@ -78,13 +78,13 @@ func createDefaultConfig() component.Config {
78
78
}
79
79
}
80
80
81
- func helperOptions (e exp ) []exporterhelper.Option {
81
+ func helperOptions (e exp , qbs exporterhelper. QueueBatchSettings ) []exporterhelper.Option {
82
82
cfg := e .getConfig ().(* Config )
83
83
return []exporterhelper.Option {
84
84
exporterhelper .WithCapabilities (consumer.Capabilities {MutatesData : false }),
85
85
exporterhelper .WithTimeout (cfg .TimeoutSettings ),
86
86
exporterhelper .WithRetry (cfg .RetryConfig ),
87
- exporterhelper .WithQueue (cfg .QueueSettings ),
87
+ exporterhelper .WithQueueBatch (cfg .QueueSettings , qbs ),
88
88
exporterhelper .WithStart (e .start ),
89
89
exporterhelper .WithShutdown (e .shutdown ),
90
90
}
@@ -115,7 +115,7 @@ func createTracesExporter(
115
115
}
116
116
return exporterhelper .NewTraces (ctx , e .getSettings (), e .getConfig (),
117
117
e .pushTraces ,
118
- helperOptions (e )... ,
118
+ helperOptions (e , exporterhelper . NewTracesQueueBatchSettings () )... ,
119
119
)
120
120
}
121
121
@@ -134,7 +134,7 @@ func createMetricsExporter(
134
134
}
135
135
return exporterhelper .NewMetrics (ctx , e .getSettings (), e .getConfig (),
136
136
e .pushMetrics ,
137
- helperOptions (e )... ,
137
+ helperOptions (e , exporterhelper . NewMetricsQueueBatchSettings () )... ,
138
138
)
139
139
}
140
140
@@ -153,6 +153,6 @@ func createLogsExporter(
153
153
}
154
154
return exporterhelper .NewLogs (ctx , e .getSettings (), e .getConfig (),
155
155
e .pushLogs ,
156
- helperOptions (e )... ,
156
+ helperOptions (e , exporterhelper . NewLogsQueueBatchSettings () )... ,
157
157
)
158
158
}
0 commit comments