Page MenuHomePhabricator

Deprecate and remove EventLogging::getMetricsPlatformClient()
Open, Needs TriagePublic

Description

Ronseal.

Background

EventLogging::getMetricsPlatformClient() is the gateway to the Metrics Platform SDK. The Experiment Platform team are deprecating the Metrics Platform MediaWiki extension and SDKs in favour of the Test Kitchen SDK. EventLogging::getMetricsPlatformClient() should be deprecated and removed.

AC

Event Timeline

Milimetric subscribed.

watching, please add us if you need review / brainbouncing

@phuedx are usages like this ($this->metricsClientFactory->newMetricsClient( $context )) implicitly included here? Mentioning just in case. I have found this while looking for others regarding the JS client library

@phuedx are usages like this ($this->metricsClientFactory->newMetricsClient( $context )) implicitly included here? Mentioning just in case. I have found this while looking for others regarding the JS client library

Good question, @Sfaci. I would say no – let's keep this task tightly scoped. All instances of MetricsClientFactory#newMetricsClient() (Codesearch) are using the EventLogging.MetricsClientFactory service, which should have its own deprecation task.

@phuedx are usages like this ($this->metricsClientFactory->newMetricsClient( $context )) implicitly included here? Mentioning just in case. I have found this while looking for others regarding the JS client library

Good question, @Sfaci. I would say no – let's keep this task tightly scoped. All instances of MetricsClientFactory#newMetricsClient() (Codesearch) are using the EventLogging.MetricsClientFactory service, which should have its own deprecation task.

ok! Fully agree!
I started already with this by filing a couple of tasks to migrate specific instruments that are using that way (T415650: Migrate ReportIncident PHP instrument to use Test Kitchen SDK and T415654: Migrate CheckUser PHP instrument to use Test Kitchen SDK, for example) so I'll create the pending ones and also the specific task to deprecate that EventLogging.MetricsClientFactory service. And I will link all of them accordingly

I started already with this by filing a couple of tasks to migrate specific instruments that are using that way (T415650: Migrate ReportIncident PHP instrument to use Test Kitchen SDK and T415654: Migrate CheckUser PHP instrument to use Test Kitchen SDK, for example) so I'll create the pending ones and also the specific task to deprecate that EventLogging.MetricsClientFactory service. And I will link all of them accordingly

Done. I have filed T416020: Deprecate and remove EventLogging.MetricsClientFactory service and the needed related ticket to migrate the instruments that are using it at this time