Page MenuHomePhabricator

Forward X-Wikimedia-Debug header to MediaWiki jobs
Open, Needs TriagePublic

Description

Debugging MediaWiki jobs is a pain point, in part because there is no way to trigger detailed debug logging like we can for web requests. This seems fairly easy to fix - MediaWiki just needs to pass the value of X-Wikmedia-Debug to EventBus, and then the job executor service needs to turn it back to an actual header. (That header would affect other jobs in the same batch; that's probably fine.) Alternatively, we can make it part of the job specification like we do with X-Request-ID - that wouldn't allow routing to mwdebug, but would allow logging etc to work.