mirror of
https://github.com/element-hq/synapse.git
synced 2026-09-01 20:18:19 +00:00
Propagate trace context to media download endpoint
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user