Skip to content

Commit 04c0b89

Browse files
committed
Fix
1 parent 8b6c7e8 commit 04c0b89

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

exporter/exporterhelper/logs.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ func NewLogsQueueBatchSettings() QueueBatchSettings {
4141
},
4242
},
4343
},
44-
Partitioner: queuebatch.BasePartitioner{
45-
GetKeyFunc: func(_ context.Context, req request.Request) string {
44+
Partitioner: queuebatch.NewPartitioner(
45+
func(_ context.Context, req request.Request) string {
4646
logRequest := req.(*logsRequest)
4747
if logRequest.ld.ResourceLogs().Len() == 0 {
4848
return ""
@@ -53,7 +53,7 @@ func NewLogsQueueBatchSettings() QueueBatchSettings {
5353
}
5454
return key.AsString()
5555
},
56-
},
56+
),
5757
}
5858
}
5959

0 commit comments

Comments
 (0)