From 1047f9465de8a94725143dc2b58d3a1c6b2de3c3 Mon Sep 17 00:00:00 2001 From: Quentin Gliech Date: Wed, 13 Aug 2025 14:09:28 +0200 Subject: [PATCH] Propagate trace context to media download endpoint --- synapse/rest/synapse/media/download.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/synapse/rest/synapse/media/download.py b/synapse/rest/synapse/media/download.py index 4817ab3ef3..d4f4b7074d 100644 --- a/synapse/rest/synapse/media/download.py +++ b/synapse/rest/synapse/media/download.py @@ -51,7 +51,12 @@ class DownloadResource(DirectServeJsonResource): "This resource should only be mounted on workers that can load the media repo" ) - DirectServeJsonResource.__init__(self) + DirectServeJsonResource.__init__( + self, + # It is useful to have the tracing context on this endpoint as it + # can help debug federation issues + extract_context=True, + ) self._clock = hs.get_clock() self._media_repository = hs.get_media_repository()