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.
1 parent 60046f8 commit 1fa281fCopy full SHA for 1fa281f
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