Page MenuHomePhabricator

Send tracing headers from Shellbox client
Closed, ResolvedPublic

Description

Looks like Shellbox is using Guzzle HTTP client directly (created by HttpRequestFactory), not MwHttpRequest nor MultiHttpClient.
It supports X-Request-Id header, but it's adding it manually in the ShellboxClientFactory, instead of depending on HTTPRequestFactory to prepare the HTTPClient.

Definition of done:

  • Shellbox code does not use deprecated WebRequest::getRequestId().
  • HttpRequestFactory::getGuzzleClient() returns HTTP Client with telemetry headers

Event Timeline

Change 957245 had a related patch set uploaded (by Pmiazga; author: Pmiazga):

[mediawiki/core@master] shellbox: Use Telemetry class instead of deprecated WebRequest::getRequestId()

https://gerrit.wikimedia.org/r/957245

Change 957245 merged by jenkins-bot:

[mediawiki/core@master] shellbox: Use Telemetry class instead of WebRequest::getRequestId()

https://gerrit.wikimedia.org/r/957245

pmiazga triaged this task as Medium priority.