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

chore(cache): Make exprimental messages more clear for cache. #6219

Merged
merged 1 commit into from
May 26, 2022

Conversation

kavirajk
Copy link
Contributor

@kavirajk kavirajk commented May 22, 2022

What this PR does / why we need it:
Currently we see following message when any of the experimental feature is used for cache (say fifocache or redis).
But the problem it doesn't say _what_kind of cache is it exactly.

caller=experimental.go:20 msg="experimental feature in use" feature="In-memory (FIFO) cache"
caller=experimental.go:20 msg="experimental feature in use" feature="Redis cache"

So this leads to confusion to track what kind of cache is the source of the experiment feature.

one such example is from the community.
#6201 (comment)

This PR fixes it by adding more clear message.

caller=experimental.go:20 msg="experimental feature in use" feature="Redis cache - chunksredis"
caller=experimental.go:20 msg="experimental feature in use" feature="In-memory (FIFO) cache - chunksfifocache"

Signed-off-by: Kaviraj [email protected]

Which issue(s) this PR fixes:
Fixes NA

Special notes for your reviewer:

Checklist

@kavirajk kavirajk marked this pull request as ready for review May 22, 2022 17:52
@kavirajk kavirajk requested a review from a team as a code owner May 22, 2022 17:52
Currently we see following message when any of the experimental feature is used for cache (say fifocache or redis).
But the problem it doesn't say __what_kind__ of cache is it exactly.

So this leads to confusion to track what kind of cache is the source of the experiment feature.

This PR fixes it by adding more clear message.

Signed-off-by: Kaviraj <[email protected]>
@kavirajk kavirajk force-pushed the kavirajk/make-experimental-msg-more-clear-for-cache branch from ca06717 to 0baa8fe Compare May 22, 2022 21:26
@grafanabot
Copy link
Collaborator

./tools/diff_coverage.sh ../loki-main/test_results.txt test_results.txt ingester,distributor,querier,querier/queryrange,iter,storage,chunkenc,logql,loki

Change in test coverage per package. Green indicates 0 or positive change, red indicates that test coverage for a package fell.

+           ingester	0%
+        distributor	0.3%
+            querier	0%
+ querier/queryrange	0%
+               iter	0%
+            storage	0%
+           chunkenc	0%
+              logql	0%
+               loki	0%

Copy link
Contributor

@sandeepsukhani sandeepsukhani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kavirajk kavirajk merged commit a795b93 into main May 26, 2022
@kavirajk kavirajk deleted the kavirajk/make-experimental-msg-more-clear-for-cache branch May 26, 2022 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants