forked-synapse/synapse/storage
Richard van der Hoff 9eea4646be
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).
2021-06-03 16:31:56 +01:00
..
databases Add new admin APIs to remove media by media ID from quarantine. (#10044) 2021-06-02 18:50:35 +01:00
engines Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
schema Use a database table to hold the users that should have full presence sent to them, instead of something in-memory (#9823) 2021-05-18 14:13:45 +01:00
util Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
__init__.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
_base.py Remove unnecessary SystemRandom from SQLBaseStore (#9987) 2021-05-14 10:59:10 +01:00
background_updates.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
database.py Add OpenTracing for database activity. (#10113) 2021-06-03 16:31:56 +01:00
keys.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
persist_events.py Remove synapse.types.Collection (#9856) 2021-04-22 16:43:50 +01:00
prepare_database.py Reorganise the database schema directories (#9932) 2021-05-07 10:22:05 +01:00
purge_events.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
push_rule.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
relations.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
roommember.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
state.py Fix get_state_ids_for_event return type typo to match what the function actually does (#10050) 2021-05-24 10:43:33 +01:00
types.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00