Merge pull request #3092 from matrix-org/rav/response_cache_metrics

Add metrics for ResponseCache
This commit is contained in:
Richard van der Hoff 2018-04-12 12:59:36 +01:00 committed by GitHub
commit d5c74b9f6c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 21 additions and 7 deletions

View file

@ -65,7 +65,7 @@ class FederationServer(FederationBase):
# We cache responses to state queries, as they take a while and often
# come in waves.
self._state_resp_cache = ResponseCache(hs, timeout_ms=30000)
self._state_resp_cache = ResponseCache(hs, "state_resp", timeout_ms=30000)
@defer.inlineCallbacks
@log_function