Skip to content
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

Merged

Conversation

istio-testing
Copy link
Collaborator

This is an automated cherry-pick of #16821

@googlebot googlebot added the cla: yes Set by the Google CLA bot to indicate the author of a PR has signed the Google CLA. label Sep 4, 2019
@istio-testing istio-testing added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Sep 4, 2019
@bianpengyuan
Copy link
Contributor

@fpesce Can we please get this into 1.2? Thanks! This only affects logs to make it less verbose.

@bianpengyuan
Copy link
Contributor

@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) {
Copy link
Contributor

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?

Copy link
Contributor

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.

@fpesce
Copy link
Contributor

fpesce commented Sep 6, 2019

/test integ-mixer-k8s-presubmit-tests-release-1.2

@fpesce fpesce merged commit 58b4608 into istio:release-1.2 Sep 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Set by the Google CLA bot to indicate the author of a PR has signed the Google CLA. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants