-
Notifications
You must be signed in to change notification settings - Fork 6
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
Clearer metrics Without LKK Delete #33
Conversation
# if the value of the last known key is nil, we can infer that it's | ||
# most likely expired, thus remove it so other processes don't waste | ||
# time trying to read it | ||
@storage.delete(lkk) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dropping delete here, as we don't yet know if this is 100% safe. Added a metric in its place.
metrics(:increment, 'last-known-value.nil', tags: tags) | ||
else | ||
metrics(:increment, 'last-known-value.not-present', tags: tags) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📏 Measure all teh things!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👀 ->🔒 🎁 ?
Background
Tasks
./lib/atomic_cache/version.rb
) when applicable