MatrixSynapse/synapse/logging
Erik Johnston 2b7c180879
Start fewer opentracing spans (#8640)
#8567 started a span for every background process. This is good as it means all Synapse code that gets run should be in a span (unless in the sentinel logging context), but it means we generate about 15x the number of spans as we did previously.

This PR attempts to reduce that number by a) not starting one for send commands to Redis, and b) deferring starting background processes until after we're sure they're necessary.

I don't really know how much this will help.
2020-10-26 09:30:19 +00:00
..
__init__.py Move logging utilities out of the side drawer of util/ and into logging/ (#5606) 2019-07-04 00:07:04 +10:00
_remote.py Separate the TCP and terse JSON formatting code. (#8587) 2020-10-21 06:59:54 -04:00
_structured.py Enable mypy checking for unreachable code and fix instances. (#8432) 2020-10-01 08:09:18 -04:00
_terse_json.py Separate the TCP and terse JSON formatting code. (#8587) 2020-10-21 06:59:54 -04:00
context.py Create a mechanism for marking tests "logcontext clean" (#8399) 2020-09-28 17:58:33 +01:00
formatter.py Simplify super() calls to Python 3 syntax. (#8344) 2020-09-18 09:56:44 -04:00
opentracing.py Start fewer opentracing spans (#8640) 2020-10-26 09:30:19 +00:00
scopecontextmanager.py Simplify super() calls to Python 3 syntax. (#8344) 2020-09-18 09:56:44 -04:00
utils.py Use the right constructor for log records (#8278) 2020-09-08 14:52:51 +01:00