diff --git a/cmd/collector/app/span_processor_test.go b/cmd/collector/app/span_processor_test.go index 19258654f46..41d9c7a0ac3 100644 --- a/cmd/collector/app/span_processor_test.go +++ b/cmd/collector/app/span_processor_test.go @@ -848,7 +848,7 @@ func TestOTLPReceiverWithV2Storage(t *testing.T) { span := sSpans.Spans().AppendEmpty() span.SetName("test-trace") - receivedTraces := atomic.Pointer[ptrace.Traces]{} + var receivedTraces atomic.Pointer[ptrace.Traces] mockWriter.On("WriteTraces", mock.Anything, mock.Anything). Run(func(args mock.Arguments) { storeTrace := args.Get(1).(ptrace.Traces)