From 4428c3d744956f1c658f7a8f7b2869238f3b49df Mon Sep 17 00:00:00 2001 From: Tyler Yahn Date: Fri, 20 Dec 2024 16:14:28 -0800 Subject: [PATCH] Update internal/pkg/instrumentation/bpf/go.opentelemetry.io/otel/traceglobal/probe.go --- .../bpf/go.opentelemetry.io/otel/traceglobal/probe.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/pkg/instrumentation/bpf/go.opentelemetry.io/otel/traceglobal/probe.go b/internal/pkg/instrumentation/bpf/go.opentelemetry.io/otel/traceglobal/probe.go index 98b8c2803..d2459b620 100644 --- a/internal/pkg/instrumentation/bpf/go.opentelemetry.io/otel/traceglobal/probe.go +++ b/internal/pkg/instrumentation/bpf/go.opentelemetry.io/otel/traceglobal/probe.go @@ -181,7 +181,7 @@ func (c *converter) decodeEvent(record perf.Record) (*event, error) { var e *event switch kind { case recordKindTelemetry: - e := new(event) + e = new(event) reader.Reset(record.RawSample) err = binary.Read(reader, binary.LittleEndian, e) case recordKindConrol: