-
Notifications
You must be signed in to change notification settings - Fork 7.8k
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
[release-1.2] Make sd adapter less verbose on server error #16823
[release-1.2] Make sd adapter less verbose on server error #16823
Conversation
@fpesce Can we please get this into 1.2? Thanks! This only affects logs to make it less verbose. |
@fpesce Ping, any help on this? This is needed by a customer. |
@@ -166,7 +167,12 @@ func (b *buffered) Send() { | |||
if err != nil { | |||
ets := handleError(err, timeSeries) | |||
b.updateRetryBuffer(ets) | |||
_ = b.l.Errorf("Stackdriver returned: %v\nGiven data: %v", err, timeSeries) | |||
b.l.Errorf("%d time series was sent and Stackdriver returned: %v\n", len(timeSeries), err) // nolint: errcheck | |||
if isOutOfOrderError(err) { |
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.
should we record some sort of metric here that we can monitor?
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.
Yeah, I can do it in follow up PR.
/test integ-mixer-k8s-presubmit-tests-release-1.2 |
This is an automated cherry-pick of #16821