-
Notifications
You must be signed in to change notification settings - Fork 522
Refactor cache metrics to be homeserver-scoped #18604
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
Merged
Merged
Changes from 21 commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
ba3bbbb
Add `INSTANCE_LABEL_NAME` to `register_cache(...)`
MadLittleMods 749b7a4
Fill in `ExpiringCache`
MadLittleMods 8e71fcd
Fill in `ResponseCache`
MadLittleMods 61fc9ba
Fill in `StreamChangeCache`
MadLittleMods 74610aa
Fill in `TTLCache`
MadLittleMods 8dbca87
Fill in `LruCache` except for `@cached`
MadLittleMods 1e57b57
Fix `LruCache` positional argument lint
MadLittleMods 19c917c
Attempt `@cached` solution v1
MadLittleMods 0453666
Fix missing `server_name` on `ExpiringCache` usage
MadLittleMods a17206f
Fix arguments in `DeferredCache` usage
MadLittleMods 4fcfda0
Merge branch 'develop' into madlittlemods/per-hs-metrics-cache
MadLittleMods d10d862
Add changelog
MadLittleMods 9895b3b
Fill in missing `LruCache` usage
MadLittleMods 9eae037
Fix mypy complaining about unknown types
MadLittleMods ee91f6b
Better explain usage
MadLittleMods 1917a0b
Fill in `server_name` attribute for `ApplicationService` (for `@cached`)
MadLittleMods 64ed156
Fill in `server_name` attribute for `@cached`
MadLittleMods e943bb1
Fix more `ApplicationService` usage/mocks
MadLittleMods b3ecd5c
Fix `ApplicationService` `sender` usage in test
MadLittleMods f7e6f09
Fix `CacheMetric` splatting label objects as arguments
MadLittleMods 9078076
Fix `ApplicationService` `sender` usage in test2
MadLittleMods 42699c4
`instance` -> `server_name` label
MadLittleMods 22cee6f
Add comment about why `self.server_name` necessary for `@cached`
MadLittleMods f5d9558
Merge branch 'develop' into madlittlemods/per-hs-metrics-cache
MadLittleMods 2b13387
Merge branch 'develop' into madlittlemods/per-hs-metrics-cache
MadLittleMods 71fbcf6
Merge branch 'develop' into madlittlemods/per-hs-metrics-cache
MadLittleMods 6676f05
Merge branch 'develop' into madlittlemods/per-hs-metrics-cache
MadLittleMods 0bb7eae
Move comment to match arg order
MadLittleMods b5f00c8
Remove Cargo.lock changes
MadLittleMods File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Refactor cache metrics to be homeserver-scoped. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.