-
Notifications
You must be signed in to change notification settings - Fork 381
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
ActionSupport Cache integration only recording SET and DELETE operations #858
Comments
In this case, what do you expect to see that you're not seeing? GET calls? Something else? |
Yes I'd also expect to also see GETs reported. I think as well though that the SET counts are not accurate as they only get triggered by calls to Looking into this a bit more I think the issue is partly caused because we use the dalli gem and have a rails cache of There is another adapter included in Rails Either way there's another issue here - any Rails cache that implements Finally |
Okay this is a helpful triage; we'll reassess this instrumentation, see if we can improve upon it. Might follow up later with some questions or updates. Thanks for the heads up @djmb! |
I've spend a some time trying out a few implementations that would work with
Overall, I wasn't able to come up with an implementation that seemed maintainable at this moment. Regarding instrumenting the missing methods ( |
👋 @djmb We just released v2.2.0. Give it a try! |
Under Rails 6.0.1 we are only seeing SET and DELETE opertations for the ActiveSupport Cache integration.
It looks like it caused by extra methods that are added in Rails'
LocalStore
implementation - https://github.com/rails/rails/blob/v6.0.1/activesupport/lib/active_support/cache/strategy/local_cache.rb#L53-L79These are not patched to calls to them are missed. The SET operations that are recorded look to come from
increment
anddecrement
calls that do use the patchedwrite
method.The text was updated successfully, but these errors were encountered: