summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--changelog.d/13085.misc1
-rw-r--r--synapse/storage/databases/main/stats.py1
2 files changed, 2 insertions, 0 deletions
diff --git a/changelog.d/13085.misc b/changelog.d/13085.misc
new file mode 100644
index 0000000000..2401d4f388
--- /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 538451b05f..82851ffa95 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(