Propagate trace context to media download endpoint

This commit is contained in:
Quentin Gliech
2025-08-13 14:09:28 +02:00
parent 8cc10a5f26
commit 1047f9465d
+6 -1
View File
@@ -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()