Skip to content

Commit

Permalink
fix not found error (#2726)
Browse files Browse the repository at this point in the history
  • Loading branch information
datelier authored Oct 30, 2024
1 parent 91518e5 commit 467ab10
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions pkg/gateway/lb/handler/grpc/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -1904,13 +1904,12 @@ func (s *server) MultiUpdate(
}

if errs != nil {
st, _ := status.FromError(err)
st, _ := status.FromError(errs)
if st != nil && span != nil {
span.RecordError(err)
span.RecordError(errs)
span.SetAttributes(trace.FromGRPCStatus(st.Code(), st.Message())...)
span.SetStatus(trace.StatusError, err.Error())
span.SetStatus(trace.StatusError, errs.Error())
}
errs = err
}

return locs, errs
Expand Down Expand Up @@ -2735,13 +2734,12 @@ func (s *server) MultiRemove(
}

if errs != nil {
st, _ := status.FromError(err)
st, _ := status.FromError(errs)
if st != nil && span != nil {
span.RecordError(err)
span.RecordError(errs)
span.SetAttributes(trace.FromGRPCStatus(st.Code(), st.Message())...)
span.SetStatus(trace.StatusError, err.Error())
span.SetStatus(trace.StatusError, errs.Error())
}
errs = err
}

return locs, errs
Expand Down

0 comments on commit 467ab10

Please sign in to comment.