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

fix(firestore): do not trace iterator.Done error #8082

Merged
merged 2 commits into from
Jun 12, 2023

Conversation

noahdietz
Copy link
Contributor

Do not include err in the "cloud.google.com/go/firestore.Query.RunQuery" trace if it is iterator.Done.

Since the return values are named for queryDocumentIterator.next(), even a return statement with concrete values will set those named return variables to the values returned. This means a line like return nil, iterator.Done actually sets err to iterator.Done.

Fixes #7711

@noahdietz noahdietz requested review from bhshkh and a team as code owners June 12, 2023 20:01
@product-auto-label product-auto-label bot added size: xs Pull request size is extra small. api: firestore Issues related to the Firestore API. labels Jun 12, 2023
@noahdietz noahdietz added the automerge Merge the pull request once unit tests and other checks pass. label Jun 12, 2023
@gcf-merge-on-green gcf-merge-on-green bot merged commit 5f24d17 into googleapis:main Jun 12, 2023
7 of 8 checks passed
@gcf-merge-on-green gcf-merge-on-green bot removed the automerge Merge the pull request once unit tests and other checks pass. label Jun 12, 2023
@noahdietz noahdietz deleted the firestore-trace branch June 12, 2023 20:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: firestore Issues related to the Firestore API. size: xs Pull request size is extra small.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

firestore: tracing error "no more items in iterator" on iterator.Done
2 participants