Skip to content

Commit

Permalink
Merge branch 'main' into feature/internal-net/support-quic
Browse files Browse the repository at this point in the history
  • Loading branch information
kpango authored Oct 31, 2024
2 parents 2c01e8a + 467ab10 commit 3740e8d
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 3740e8d

Please sign in to comment.