diff --git a/querybuilder/querybuilder.go b/querybuilder/querybuilder.go index 64a32e0db..ee8c9e2cb 100644 --- a/querybuilder/querybuilder.go +++ b/querybuilder/querybuilder.go @@ -150,7 +150,9 @@ func (s *Selection) unpack(data interface{}) error { if err != nil { return err } - json.Unmarshal(marshalled, s.bind) + if err := json.Unmarshal(marshalled, s.bind); err != nil { + return err + } } } diff --git a/telemetry/exporters.go b/telemetry/exporters.go index b752ac6cb..988d1add2 100644 --- a/telemetry/exporters.go +++ b/telemetry/exporters.go @@ -89,7 +89,7 @@ func (m LogForwarder) Export(ctx context.Context, logs []sdklog.Record) error { e := e eg.Go(func() error { for _, log := range logs { - e.OnEmit(ctx, log) + _ = e.OnEmit(ctx, log) } return nil })