-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement StreamListObject and its tests #2145
Conversation
Deploying with Cloudflare Pages
|
[CHATOPS:HELP] ChatOps commands.
|
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #2145 +/- ##
==========================================
+ Coverage 31.14% 31.18% +0.04%
==========================================
Files 339 339
Lines 32834 32920 +86
==========================================
+ Hits 10225 10265 +40
- Misses 22157 22200 +43
- Partials 452 455 +3
☔ View full report in Codecov by Sentry. |
004fb04
to
1952b5c
Compare
for _, e := range errs { | ||
st, msg, err := status.ParseError(e, codes.Internal, "failed to parse StreamListObject final gRPC error response") | ||
if span != nil { | ||
span.RecordError(err) | ||
span.SetAttributes(trace.FromGRPCStatus(st.Code(), msg)...) | ||
span.SetStatus(trace.StatusError, msg) | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems we can rewrite it like
for _, e := range errs { | |
st, msg, err := status.ParseError(e, codes.Internal, "failed to parse StreamListObject final gRPC error response") | |
if span != nil { | |
span.RecordError(err) | |
span.SetAttributes(trace.FromGRPCStatus(st.Code(), msg)...) | |
span.SetStatus(trace.StatusError, msg) | |
} | |
} | |
if span != nil { | |
for _, e := range errs { | |
st, msg, err := status.ParseError(e, codes.Internal, "failed to parse StreamListObject final gRPC error response") | |
span.RecordError(err) | |
span.SetAttributes(trace.FromGRPCStatus(st.Code(), msg)...) | |
span.SetStatus(trace.StatusError, msg) | |
} | |
} |
because this block of logic only effective when span is not nil.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
d21c1af
Description:
This PR implements
StreamListObject
rpc.Related Issue:
Versions:
Checklist:
Special notes for your reviewer: