Currently, when MediaWiki processes a request, it takes care to propagate the x-request-id header from the incoming request to any requests to other services it makes "on behalf" of that request as part of handling it (for instance if MediaWiki fetches from Restbase, or Shellbox).
In order to implement distributed tracing, we'll also need to similarly propagate the tracestate and traceparent headers.
In the future we'll likely want to integrate MediaWiki with the OpenTelemetry client library, so we can add other context to traces within MediaWiki. But for now we can simply propagating these two headers without modifying them or even parsing them (as is allowed by the W3C TraceContext Recommendation)