-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Proxy: unify store filtering #7371
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
Conversation
96bf77c to
d86bd0e
Compare
In LabelNames and LabelValues gRPC calls were not pruned properly. While results are not wrong, this leads to inefficient fan-out for setups with many endpoints. We took the opportunity to unify the store filtering and generally also the larger layout of the gRPC methods, including logging and tracing. Signed-off-by: Michael Hoffmann <[email protected]>
d86bd0e to
8f7e9ae
Compare
GiedriusS
left a comment
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.
Nice cleanup 👍
| }, nil | ||
| } | ||
|
|
||
| func storeInfo(st Client) (storeID string, storeAddr string, isLocalStore bool) { |
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.
Why not make this a struct function?
| func storeInfo(st Client) (storeID string, storeAddr string, isLocalStore bool) { | |
| func (st *Client) Info() (storeID string, storeAddr string, isLocalStore bool) { |
Also, I'm not a big fan of the use of multiple named returns like this. For example, I think it would be better to implement individual funcs like func (st *Client) IsLocalStore() bool {...}.
In LabelNames and LabelValues gRPC calls were not pruned properly. While results are not wrong, this leads to inefficient fan-out for setups with many endpoints. We took the opportunity to unify the store filtering and generally also the larger layout of the gRPC methods, including logging and tracing. Signed-off-by: Michael Hoffmann <[email protected]>
In LabelNames and LabelValues gRPC calls were not pruned properly. While results are not wrong, this leads to inefficient fan-out for setups with many endpoints. We took the opportunity to unify the store filtering and generally also the larger layout of the gRPC methods, including logging and tracing. Signed-off-by: Michael Hoffmann <[email protected]>
In LabelNames and LabelValues gRPC calls were not pruned properly. While results are not wrong, this leads to inefficient fan-out for setups with many endpoints. We took the opportunity to unify the store filtering and generally also the larger layout of the gRPC methods, including logging and tracing. Signed-off-by: Michael Hoffmann <[email protected]>
Changes
In LabelNames and LabelValues gRPC calls were not pruned properly. While results are not wrong, this leads to inefficient fan-out for setups with many endpoints.
We took the opportunity to unify the store filtering and generally also the larger layout of the gRPC methods, including logging and tracing.
Verification
Existing unittests.