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

Query: Put cache name on tracing spans #4696

Merged
merged 2 commits into from
Sep 23, 2021
Merged

Conversation

bboreham
Copy link
Contributor

With multiple caches, this change lets you see clearly which spans relate to which cache.

  • I added CHANGELOG entry for this change.
  • Change is not relevant to the end user.

Changes

Added a name member to caches, add this as a tag when tracing.

Verification

Left as an exercise.

With multiple caches, this change lets you see clearly which spans
relate to which cache.

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
Copy link
Contributor

@pracucci pracucci left a comment

Choose a reason for hiding this comment

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

Makes sense to me!

Could you fix the cache mock in tests, please?

pkg/store/cache/caching_bucket_test.go:227:22: cannot use cache (type *mockCache) as type cache.Cache in argument to cfg.CacheGetRange:
	*mockCache does not implement cache.Cache (missing Name method)

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
@GiedriusS GiedriusS merged commit c15594a into thanos-io:main Sep 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants