-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[Enhancment request] Observability for caffeine #1809
Comments
This comment was marked as spam.
This comment was marked as spam.
Caffeine has statistics that you can enable to report on and SpringBoot has support for this to expose it using their registry. I don't think there is any feature to add here? |
Thank you @ben-manes for the answer. I had a look at the links, and wanted to confirm few things if you are ok.
The second screenshot shows a second call, an invocation to the cache this time. I was wondering if you would think the traces could be enhanced with a visual showing it went to the cache instead, and not as in this current state, which can lead to interpreting that "nothing happened". |
Yes, it seems like a SpringBoot question. I have not used it so I can’t advise there. I think usually it’s inferred in traces, but you could add a custom span to denote it, which would incur some overhead. Asking the spring community on what they do will hopefully answer both your questions. I believe most rely on Spring Cache and the default behavior. |
Hello team,
This is my first ticket here.
If not anything else, just wanted to say big thanks for this project.
I am using caffeine with SpringBoot, and it makes caching very easy.
Just wanted to reach out with a small enhancement request.
We are using this project in production, with some very critical business workloads.
We have observability on the web service layer, and observability for many components of our projects.
However, we find there is a lack of observability (metrics, tracing, JMX, etc.) for this project.
For instance, how much is the current cache size, and how much of non-miss cache (i.e. going to retrieve the data inside the cache directly) all those are hard to obtain, just to cite a few examples.
Would it be possible to enhance this project with observability on the cache layer?
I think it would make this project even more production-ready, and improve customer experience.
Thank you for your time.
The text was updated successfully, but these errors were encountered: