summary refs log tree commit diff
path: root/synapse/handlers/sync.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2018-10-10 11:40:43 +0100
committerErik Johnston <erik@matrix.org>2018-10-10 11:41:15 +0100
commit7e561b5c1a0cf0177f14e67851bb7e0ffaeda042 (patch)
treef7b3fd7ea9134499278797d48b9b5aa18a7c6952 /synapse/handlers/sync.py
parentUpdate newsfile (diff)
downloadsynapse-7e561b5c1a0cf0177f14e67851bb7e0ffaeda042.tar.xz
Add description to counter metric
Diffstat (limited to '')
-rw-r--r--synapse/handlers/sync.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/synapse/handlers/sync.py b/synapse/handlers/sync.py
index 5cae48436f..351892a94f 100644
--- a/synapse/handlers/sync.py
+++ b/synapse/handlers/sync.py
@@ -44,7 +44,11 @@ logger = logging.getLogger(__name__)
 # "true" or "false" depending on if the request asked for lazy loaded members or
 # not.
 non_empty_sync_counter = Counter(
-    "synapse_handlers_sync_nonempty_total", "", ["type", "lazy_loaded"],
+    "synapse_handlers_sync_nonempty_total",
+    "Count of non empty sync responses. type is initial_sync/full_state_sync"
+    "/incremental_sync. lazy_loaded indicates if lazy loaded members were "
+    "enabled for that request.",
+    ["type", "lazy_loaded"],
 )
 
 # Store the cache that tracks which lazy-loaded members have been sent to a given