refactor(logcache-communication): replace the custom LogCacheClient
with a simple LogCacheFetcher
and build actual logcache.Client
in another component
#3022
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.
ℹ️ This PR is based on #2983 ℹ️
Problem
The current implementation of
src/autoscaler/eventgenerator/client/log_cache_client.go
has some aspects that could benefit from improvement to enhance readability and maintainability:app-autoscaler-release/src/autoscaler/eventgenerator/client/metric_client_factory.go
Lines 38 to 57 in b7c34a8
app-autoscaler-release/src/autoscaler/eventgenerator/client/log_cache_client.go
Lines 242 to 254 in b7c34a8
app-autoscaler-release/src/autoscaler/eventgenerator/client/log_cache_client.go
Lines 214 to 240 in b7c34a8
app-autoscaler-release/src/autoscaler/eventgenerator/client/log_cache_client.go
Lines 80 to 86 in b7c34a8
Solution
client/
package with a rewrite inmetric/
package