-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Add client context propagation #248
Add client context propagation #248
Conversation
} | ||
} else { | ||
r.logger.Debugf(ctx, "Ignoring Opamp, agent does not have AcceptsOpAMPConnectionSettings capability") | ||
} | ||
} | ||
|
||
func (r *receivedProcessor) processErrorResponse(ctx context.Context, body *protobufs.ServerErrorResponse) { | ||
// TODO: implement this. | ||
r.logger.Errorf(ctx, "received an error from server: %s", body.ErrorMessage) | ||
if body != 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.
This never called the OnError method when it should have.
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #248 +/- ##
==========================================
+ Coverage 72.86% 72.92% +0.06%
==========================================
Files 25 25
Lines 2038 2039 +1
==========================================
+ Hits 1485 1487 +2
+ Misses 444 443 -1
Partials 109 109 ☔ View full report in Codecov by Sentry. |
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.
Great change!
This is a follow up to #237 and #247, adding context propagation for client methods.
This involves a breaking change for the client interfaces