diff options
author | Erik Johnston <erik@matrix.org> | 2019-09-05 15:22:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-05 15:22:24 +0100 |
commit | 1a6ae333090c5b34ab6a3e0427dfc87ed99d6a9c (patch) | |
tree | 0c1b096f70c9d7743049765fdc31639001fa84ea /synapse/federation/units.py | |
parent | Add opentracing to all client servlets (#5983) (diff) | |
parent | use access methods (duh..) (diff) | |
download | synapse-1a6ae333090c5b34ab6a3e0427dfc87ed99d6a9c.tar.xz |
Merge pull request #5984 from matrix-org/joriks/opentracing_link_send_to_edu_contexts
Link the send loop with the edus contexts
Diffstat (limited to 'synapse/federation/units.py')
-rw-r--r-- | synapse/federation/units.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/federation/units.py b/synapse/federation/units.py index aa84621206..b4d743cde7 100644 --- a/synapse/federation/units.py +++ b/synapse/federation/units.py @@ -41,6 +41,9 @@ class Edu(JsonEncodedObject): def get_context(self): return getattr(self, "content", {}).get("org.matrix.opentracing_context", "{}") + def strip_context(self): + getattr(self, "content", {})["org.matrix.opentracing_context"] = "{}" + class Transaction(JsonEncodedObject): """ A transaction is a list of Pdus and Edus to be sent to a remote home |