We currently generate and inject two different request IDs to MediaWiki backend requests:
- UNIQUE_ID (environment variable from Apache mod_unique_id).
- X-Request-Id (HTTP header, from.. ATS? local Nginx? or Varnish?)
This causes confusion:
- T247786: MWExceptionHandler reqId sometimes differs from php-wmerrors reqId
- T253674: WikimediaDebug "Find in XHGui" can't find profiles
- T253677: Remove unique_id from Logstash entries for MW
Note that for cases were neither is set (e.g. CLI), MW generates its own reqId as fallback for grouping logs and for internal requests to other services.
Are there still incoming requests to app servers that don't we set X-Request-Id? If so, is it feasible/desirable to fix the remaining cases that don't?