summary refs log tree commit diff
path: root/changelog.d
diff options
context:
space:
mode:
authorRichard van der Hoff <1389908+richvdh@users.noreply.github.com>2021-06-03 16:31:56 +0100
committerGitHub <noreply@github.com>2021-06-03 16:31:56 +0100
commit9eea4646be5eef1e2b24e3b0bb0fc94999c2250c (patch)
tree744bc71d4b048a49ed9a84148c2474ee48510d55 /changelog.d
parentImprove opentracing annotations for Notifier (#10111) (diff)
downloadsynapse-9eea4646be5eef1e2b24e3b0bb0fc94999c2250c.tar.xz
Add OpenTracing for database activity. (#10113)
This adds quite a lot of OpenTracing decoration for database activity. Specifically it adds tracing at four different levels:

 * emit a span for each "interaction" - ie, the top level database function that we tend to call "transaction", but isn't really, because it can end up as multiple transactions.
 * emit a span while we hold a database connection open
 * emit a span for each database transaction - actual actual transaction.
 * emit a span for each database query.

I'm aware this might be quite a lot of overhead, but even just running it on a local Synapse it looks really interesting, and I hope the overhead can be offset just by turning down the sampling frequency and finding other ways of tracing requests of interest (eg, the `force_tracing_for_users` setting).
Diffstat (limited to 'changelog.d')
-rw-r--r--changelog.d/10113.feature1
1 files changed, 1 insertions, 0 deletions
diff --git a/changelog.d/10113.feature b/changelog.d/10113.feature
new file mode 100644
index 0000000000..2658ab8918
--- /dev/null
+++ b/changelog.d/10113.feature
@@ -0,0 +1 @@
+Report OpenTracing spans for database activity.