summary refs log tree commit diff
path: root/synapse/replication
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2018-10-29 17:34:21 +0000
committerErik Johnston <erik@matrix.org>2018-10-29 17:34:21 +0000
commita163b748a5ca37853f440c5c46d2da80f738a9e0 (patch)
treea59217b72be1023115b421f204863dadfa456bce /synapse/replication
parentDelete the disused & unspecced identicon functionality (#4106) (diff)
downloadsynapse-a163b748a5ca37853f440c5c46d2da80f738a9e0.tar.xz
Don't truncate command name in metrics
Diffstat (limited to 'synapse/replication')
-rw-r--r--synapse/replication/tcp/protocol.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/replication/tcp/protocol.py b/synapse/replication/tcp/protocol.py
index 5dc7b3fffc..0b3fe6cbf5 100644
--- a/synapse/replication/tcp/protocol.py
+++ b/synapse/replication/tcp/protocol.py
@@ -656,7 +656,7 @@ tcp_inbound_commands = LaterGauge(
     "",
     ["command", "name"],
     lambda: {
-        (k[0], p.name,): count
+        (k, p.name,): count
         for p in connected_connections
         for k, count in iteritems(p.inbound_commands_counter)
     },
@@ -667,7 +667,7 @@ tcp_outbound_commands = LaterGauge(
     "",
     ["command", "name"],
     lambda: {
-        (k[0], p.name,): count
+        (k, p.name,): count
         for p in connected_connections
         for k, count in iteritems(p.outbound_commands_counter)
     },