summary refs log tree commit diff
path: root/synapse/federation/units.py
diff options
context:
space:
mode:
authorOlivier Wilkinson (reivilibre) <olivier@librepush.net>2019-08-27 11:56:34 +0100
committerOlivier Wilkinson (reivilibre) <olivier@librepush.net>2019-08-27 11:56:34 +0100
commit5043ef801a842d4a08bd196db475438867c93dff (patch)
tree8062f178a2700d2bf42a1596fe1058a5f1f4d3ca /synapse/federation/units.py
parentUse engine-specific delta SQL files rather than delta written in Python. (diff)
parentMerge branch 'develop' into rei/rss_target (diff)
downloadsynapse-5043ef801a842d4a08bd196db475438867c93dff.tar.xz
Merge branch 'rei/rss_target' into rei/rss_inc2
Diffstat (limited to 'synapse/federation/units.py')
-rw-r--r--synapse/federation/units.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/federation/units.py b/synapse/federation/units.py
index 14aad8f09d..aa84621206 100644
--- a/synapse/federation/units.py
+++ b/synapse/federation/units.py
@@ -38,6 +38,9 @@ class Edu(JsonEncodedObject):
 
     internal_keys = ["origin", "destination"]
 
+    def get_context(self):
+        return getattr(self, "content", {}).get("org.matrix.opentracing_context", "{}")
+
 
 class Transaction(JsonEncodedObject):
     """ A transaction is a list of Pdus and Edus to be sent to a remote home