From 54211f543565bf8d864b5e48de716e4e97eab431 Mon Sep 17 00:00:00 2001 From: Jorik Schellekens Date: Thu, 11 Jul 2019 18:01:14 +0100 Subject: [PATCH] Typos and errata --- synapse/logging/opentracing.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/synapse/logging/opentracing.py b/synapse/logging/opentracing.py index bd53f2365e..e253a80043 100644 --- a/synapse/logging/opentracing.py +++ b/synapse/logging/opentracing.py @@ -49,7 +49,7 @@ logger = logging.getLogger(__name__) import inspect -class _DumTagNames(object): +class _DummyTagNames(object): """wrapper of opentracings tags. We need to have them if we want to reference them without opentracing around. Clearly they should never actually show up in a trace. `set_tags` overwrites @@ -98,7 +98,7 @@ def only_if_tracing(func): # Block everything by default _homeserver_whitelist = None -tags = _DumTagNames +tags = _DummyTagNames def init_tracer(config): @@ -309,7 +309,7 @@ def start_active_span_from_edu( for x in carrier.get("references", []) ] - # For some reason jaeger decided not to support the visualisation of multiple parent + # For some reason jaeger decided not to support the visualization of multiple parent # spans or explicitely show references. I include the span context as a tag here as # an aid to people debugging but it's really not an ideal solution. @@ -425,7 +425,7 @@ def extract_text_map(carrier): def trace_deferred(func): - """Decorator to trace a defered function. Sets the operation name to that of the + """Decorator to trace a deferred function. Sets the operation name to that of the function's.""" @@ -466,7 +466,7 @@ def trace_defered_function(func): def trace_deferred_using_operation_name(name): - """Decorator to trace a defered function. Explicitely sets the operation_name to name""" + """Decorator to trace a deferred function. Explicitely sets the operation_name.""" def trace_deferred(func): @wraps(func) @@ -495,7 +495,7 @@ def trace(func): def trace_using_operation_name(operation_name): - """Decorator to trace a function. Explicitely sets the operation_name to name""" + """Decorator to trace a function. Explicitely sets the operation_name.""" def trace(func): @wraps(func)