summary refs log tree commit diff
path: root/changelog.d/13730.misc
diff options
context:
space:
mode:
authorEric Eastwood <erice@element.io>2022-09-07 11:41:52 -0500
committerGitHub <noreply@github.com>2022-09-07 11:41:52 -0500
commitd4d3249ded000219a4f875943632c3d0f928d58d (patch)
tree0fd96f4533c935708f7b4dd06d7aa49638067439 /changelog.d/13730.misc
parentFix latest deps CI (#13734) (diff)
downloadsynapse-d4d3249ded000219a4f875943632c3d0f928d58d.tar.xz
Instrument `get_metadata_for_events` for tracing (#13730)
When backfilling, `_get_state_ids_after_missing_prev_event` calls [`get_metadata_for_events`](https://github.com/matrix-org/synapse/blob/26bc26586b4b95d63ce7e453e9312469843f796e/synapse/handlers/federation_event.py#L1133). For `#matrix:matrix.org`, it's called with 77k `state_events` which means 77 calls to the database and takes 28 seconds.
Diffstat (limited to 'changelog.d/13730.misc')
-rw-r--r--changelog.d/13730.misc1
1 files changed, 1 insertions, 0 deletions
diff --git a/changelog.d/13730.misc b/changelog.d/13730.misc
new file mode 100644
index 0000000000..06da6581a4
--- /dev/null
+++ b/changelog.d/13730.misc
@@ -0,0 +1 @@
+Instrument `get_metadata_for_events` for understandable traces in Jaeger.