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

Add weighted size counter to caffeine instrumentation #1246

Open
jhominal opened this issue Jan 3, 2025 · 1 comment
Open

Add weighted size counter to caffeine instrumentation #1246

jhominal opened this issue Jan 3, 2025 · 1 comment

Comments

@jhominal
Copy link

jhominal commented Jan 3, 2025

Hello,

I am using caffeine in a context where I am using a Weigher to bound the cache instance memory consumption.

In that context, I find that the weighted size (which can be found on the EvictionPolicy object in caffeine) is an interesting statistic to track.

I would be happy to author a PR to add that stat to caffeine instrumentation. (guava cache does not seem to expose an API that would make that statistic available)

@zeitlinger
Copy link
Member

Great - PR would be welcome 😄

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

No branches or pull requests

2 participants