-
Notifications
You must be signed in to change notification settings - Fork 93
4558 cache measurements by decorator #4688
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
base: main
Are you sure you want to change the base?
4558 cache measurements by decorator #4688
Conversation
48abcac to
f1f1ad0
Compare
|
Important note for reviewers!
Previously, Prometheus updates occurred sometimes before and sometimes after Redis calls, depending on the method. This inconsistency has now been removed. However, it’s unclear whether the original behavior was intentional, so please keep an eye out for any implications.
In the last commit, I removed the map that translated certain Prometheus methods calls counters depending on the client used. For example, calling Removing this mapping makes the code cleaner and easier to read, and I don’t believe we lose any critical information (e.g., LRU reads can still be calculated by summing However, if any existing events or logic rely on the old mapping behavior, they may break. If you are aware of anything that depends on this mapping, let me know. |
Signed-off-by: Mariusz Jasuwienas <[email protected]>
a23dd2d to
8336fbe
Compare
Codecov Report❌ Patch coverage is ❌ Your project check has failed because the head coverage (68.80%) is below the target coverage (80.00%). You can increase the head coverage or adjust the target coverage.
@@ Coverage Diff @@
## main #4688 +/- ##
===========================================
- Coverage 95.67% 68.80% -26.88%
===========================================
Files 131 132 +1
Lines 21028 21030 +2
Branches 1785 538 -1247
===========================================
- Hits 20118 14469 -5649
- Misses 892 6544 +5652
+ Partials 18 17 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 71 files with indirect coverage changes 🚀 New features to boost your workflow:
|
Description
The logic responsible for collecting metrics is being moved into a separate service.
The CacheService is being updated to implement the ClientInterface (which effectively makes the CacheService itself redundant). It will be kept only as an alias for the client.
Related issue(s)
Fixes #4690
Testing Guide
Changes from original design (optional)
N/A
Additional work needed (optional)
Deprecatd methods can be removed, here is the implementation: jasuwienas#2. (let me know wdyt)
Checklist