anonymousland-synapse/synapse/logging
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
..
__init__.py Add debug logging for issue #9533 (#9959) 2021-05-11 11:04:03 +01:00
_remote.py Fix (final) Bugbear violations (#9838) 2021-04-20 11:50:49 +01:00
_structured.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
_terse_json.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
context.py Make LoggingContext's name optional (#9857) 2021-04-21 16:39:34 +01:00
filter.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
formatter.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
opentracing.py Add OpenTracing for database activity. (#10113) 2021-06-03 16:31:56 +01:00
scopecontextmanager.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
utils.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00