Skip to content

Commit

Permalink
Register the media threadpool with our metrics
Browse files Browse the repository at this point in the history
Otherwise it won't be visible.
  • Loading branch information
anoadragon453 committed Aug 13, 2024
1 parent a308d99 commit 4620d84
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions synapse/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@
)
from synapse.http.matrixfederationclient import MatrixFederationHttpClient
from synapse.media.media_repository import MediaRepository
from synapse.metrics import register_threadpool
from synapse.metrics.common_usage_metrics import CommonUsageMetricsManager
from synapse.module_api import ModuleApi
from synapse.module_api.callbacks import ModuleApiCallbacks
Expand Down Expand Up @@ -959,4 +960,7 @@ def get_media_sender_thread_pool(self) -> ThreadPool:
"during", "shutdown", media_threadpool.stop
)

# Register the threadpool with our metrics.
register_threadpool("media", media_threadpool)

return media_threadpool

0 comments on commit 4620d84

Please sign in to comment.