Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
balancer/rls: Add picker metrics #7484
balancer/rls: Add picker metrics #7484
Changes from 3 commits
439a6ad
4cb1d35
6b2836d
2cce4cf
b427c24
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Check warning on line 156 in balancer/rls/picker.go
Codecov / codecov/patch
balancer/rls/picker.go#L155-L156
Check warning on line 183 in balancer/rls/picker.go
Codecov / codecov/patch
balancer/rls/picker.go#L183
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.
How about making a helper since this logic is used in two places now:
And we need to handle the
balancer.ErrNoSubConnAvailable
case in your code, don't we? Otherwise, we will wrongly mark picks that a child policy wanted to be queued as "fail".And if the decision is to not record a metric for queued picks, we need to make sure that we ignore that explicitly after we handle the
balancer.ErrNoSubConnAvailable
case, as in the helper I described above.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.
Oh for some reason I thought the balancer.ErrNoSubConnAvailable was only possible to be emitted from this RLS Layer. I forgot this could emit from the child as well in these error cases. I will try your helper out.
Check warning on line 203 in balancer/rls/picker.go
Codecov / codecov/patch
balancer/rls/picker.go#L203
Check warning on line 217 in balancer/rls/picker.go
Codecov / codecov/patch
balancer/rls/picker.go#L217