Merge pull request #2026 from matrix-org/rav/logcontext_docs

Logcontext docs
This commit is contained in:
Richard van der Hoff 2017-03-20 12:05:21 +00:00 committed by GitHub
commit bd08ee7a46
2 changed files with 449 additions and 8 deletions

View file

@ -12,6 +12,16 @@
# See the License for the specific language governing permissions and
# limitations under the License.
""" Thread-local-alike tracking of log contexts within synapse
This module provides objects and utilities for tracking contexts through
synapse code, so that log lines can include a request identifier, and so that
CPU and database activity can be accounted for against the request that caused
them.
See doc/log_contexts.rst for details on how this works.
"""
from twisted.internet import defer
import threading