We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 60046f8 + 1fa281f commit 0968017Copy full SHA for 0968017
internal/collector/logsgzipprocessor/processor_benchmark_test.go
@@ -83,7 +83,9 @@ func BenchmarkGzipProcessor_Concurrent(b *testing.B) {
83
b.ResetTimer()
84
b.RunParallel(func(pb *testing.PB) {
85
for pb.Next() {
86
- _ = p.ConsumeLogs(context.Background(), logs)
+ logsCopy := plog.NewLogs()
87
+ logs.CopyTo(logsCopy)
88
+ _ = p.ConsumeLogs(context.Background(), logsCopy)
89
}
90
})
91
0 commit comments