diff --git a/pkg/gateway/lb/handler/grpc/handler.go b/pkg/gateway/lb/handler/grpc/handler.go index 9c30294ef1b..8af3ec4e8de 100644 --- a/pkg/gateway/lb/handler/grpc/handler.go +++ b/pkg/gateway/lb/handler/grpc/handler.go @@ -954,7 +954,7 @@ func (s *server) MultiLinearSearch( r, err := s.LinearSearch(ctx, query) if err != nil { st, _ := status.FromError(err) - if st!= nil && sspan != nil { + if st != nil && sspan != nil { sspan.RecordError(err) sspan.SetAttributes(trace.FromGRPCStatus(st.Code(), st.Message())...) sspan.SetStatus(trace.StatusError, err.Error())