From 5570f1deae79c4d700d8e084eba4826f0fa8c839 Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Fri, 13 Nov 2020 10:51:12 +0000 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com> --- changelog.d/8712.misc | 2 +- synapse/metrics/__init__.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/changelog.d/8712.misc b/changelog.d/8712.misc index 0218e9524d..90d63a9a23 100644 --- a/changelog.d/8712.misc +++ b/changelog.d/8712.misc @@ -1 +1 @@ -Add metrics for tracking 3PID `/requestToken` requests. +Add metrics the allow the local sysadmin to track 3PID `/requestToken` requests. diff --git a/synapse/metrics/__init__.py b/synapse/metrics/__init__.py index f4576c42c3..7468f1e20c 100644 --- a/synapse/metrics/__init__.py +++ b/synapse/metrics/__init__.py @@ -505,8 +505,8 @@ last_ticked = time.time() # 3PID send info threepid_send_requests = Histogram( "synapse_threepid_send_requests_with_tries", - documentation="Number of requests for a 3pid token by retry count. Note if" - " there is a request with rerty count of 4, then there would have been one" + documentation="Number of requests for a 3pid token by try count. Note if" + " there is a request with retry count of 4, then there would have been one" " each for 1, 2 and 3", buckets=(1, 2, 3, 4, 5, 10), labelnames=("type", "reason"),