From 8ceed5e6b5449f81408236d7789eb1e5e21a1b4b Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Thu, 16 Jun 2022 18:50:46 +0100 Subject: [PATCH] Add desc to `get_earliest_token_for_stats` (#13085) --- changelog.d/13085.misc | 1 + synapse/storage/databases/main/stats.py | 1 + 2 files changed, 2 insertions(+) create mode 100644 changelog.d/13085.misc diff --git a/changelog.d/13085.misc b/changelog.d/13085.misc new file mode 100644 index 000000000..2401d4f38 --- /dev/null +++ b/changelog.d/13085.misc @@ -0,0 +1 @@ +Correctly report prometheus DB stats for `get_earliest_token_for_stats`. diff --git a/synapse/storage/databases/main/stats.py b/synapse/storage/databases/main/stats.py index 538451b05..82851ffa9 100644 --- a/synapse/storage/databases/main/stats.py +++ b/synapse/storage/databases/main/stats.py @@ -295,6 +295,7 @@ class StatsStore(StateDeltasStore): keyvalues={id_col: id}, retcol="completed_delta_stream_id", allow_none=True, + desc="get_earliest_token_for_stats", ) async def bulk_update_stats_delta(