Page MenuHomePhabricator

Incorporate librarized Metrics Platform PHP client into EventLogging
Closed, ResolvedPublic

Event Timeline

There are a very large number of changes, so older changes are hidden. Show Older Changes

Change 773263 had a related patch set uploaded (by Phuedx; author: Phuedx):

[mediawiki/libs/metrics-platform@master] [PHP]: Validate stream configuration

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

Change 773753 had a related patch set uploaded (by Phuedx; author: Phuedx):

[mediawiki/libs/metrics-platform@master] [PHP] Add MetricsClient::dispatch()

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

Change 776889 had a related patch set uploaded (by Phuedx; author: Phuedx):

[mediawiki/libs/metrics-platform@master] [PHP] Simplify Context- and CurationController

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

Change 773263 merged by jenkins-bot:

[mediawiki/libs/metrics-platform@master] [PHP]: Validate stream configuration

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

Change 776889 merged by jenkins-bot:

[mediawiki/libs/metrics-platform@master] [PHP] Simplify Context- and CurationController

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

Change 773753 merged by jenkins-bot:

[mediawiki/libs/metrics-platform@master] [PHP] Add MetricsClient::dispatch()

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

Change 791319 had a related patch set uploaded (by Phuedx; author: Phuedx):

[mediawiki/extensions/EventLogging@master] Integration wikimedia/metrics-platform v0.1.0

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

In order to properly integrate the PHP Metrics Platform client (the "client") (https://gerrit.wikimedia.org/r/c/mediawiki/extensions/EventLogging/+/791319) the following changes need to be made:

  • MetricsClient should call \Psr\Log\LoggerInterface::warning() rather than ::error() throughout
  • Making StreamConfig\StreamConfigFactory::getStreamConfig() return a null implementation of StreamConfig (NullStreamConfig) when $rawStreamConfigs is falsy. Currently, ::getStreamConfig() returns null, which causes the client to fail silently

Change 793411 had a related patch set uploaded (by Phuedx; author: Phuedx):

[mediawiki/libs/metrics-platform@master] [PHP] Fix StreamConfigFactory::getStreamConfig

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

Change 793412 had a related patch set uploaded (by Phuedx; author: Phuedx):

[mediawiki/libs/metrics-platform@master] [PHP] ::error() -> ::warning()

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

Change 793411 merged by jenkins-bot:

[mediawiki/libs/metrics-platform@master] [PHP] Fix StreamConfigFactory::getStreamConfig

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

Change 793412 merged by jenkins-bot:

[mediawiki/libs/metrics-platform@master] [PHP] ::error() -> ::warning()

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

In order to properly integrate the PHP Metrics Platform client (the "client") (https://gerrit.wikimedia.org/r/c/mediawiki/extensions/EventLogging/+/791319) the following changes need to be made…

Done™

AFAIK the last step to get the tests passing in CI is to add wikimedia/metrics-platform as a dependency in the mediawiki/vendor repository. The process for doing so is well documented.

Change 801418 had a related patch set uploaded (by Phuedx; author: Phuedx):

[mediawiki/libs/metrics-platform@master] \Wikimedia\Metrics -> \Wikimedia\MetricsPlatform

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

Change 801418 merged by jenkins-bot:

[mediawiki/libs/metrics-platform@master] \Wikimedia\Metrics -> \Wikimedia\MetricsPlatform

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

Change 805093 had a related patch set uploaded (by Phuedx; author: Phuedx):

[mediawiki/vendor@master] WIP: Add wikimedia/metrics-platform 0.1.0

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

Change 805199 had a related patch set uploaded (by Phuedx; author: Phuedx):

[mediawiki/libs/metrics-platform@master] [PHP] Require php >= 7.2.9

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

Change 805199 merged by Phuedx:

[mediawiki/libs/metrics-platform@master] [PHP] Require php >= 7.2.9

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

Change 826794 had a related patch set uploaded (by Phuedx; author: Phuedx):

[mediawiki/libs/metrics-platform@master] [PHP]: Reduce Integration interface

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

Change 826794 merged by jenkins-bot:

[mediawiki/libs/metrics-platform@master] [PHP]: Reduce Integration interface

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

EChetty raised the priority of this task from Medium to High.Nov 10 2022, 6:36 PM

Change 805093 merged by jenkins-bot:

[mediawiki/vendor@master] Add wikimedia/metrics-platform 1.0.0

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

Change 861898 had a related patch set uploaded (by Phuedx; author: Phuedx):

[mediawiki/libs/metrics-platform@master] [PHP]: Make MetricsClient implement Psr\Log\LoggerAwareInterface

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

Change 861898 merged by jenkins-bot:

[mediawiki/libs/metrics-platform@master] [PHP]: Make MetricsClient implement Psr\Log\LoggerAwareInterface

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

Change 883645 had a related patch set uploaded (by Phuedx; author: Phuedx):

[mediawiki/libs/metrics-platform@master] [PHP] Introduce EventSubmitter interface

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

Change 884298 had a related patch set uploaded (by Phuedx; author: Phuedx):

[mediawiki/extensions/EventLogging@master] Extract UserBucketService service class

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

Change 884299 had a related patch set uploaded (by Phuedx; author: Phuedx):

[mediawiki/extensions/EventLogging@master] Extract EventLogging.StreamConfigs service

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

Change 884301 had a related patch set uploaded (by Phuedx; author: Phuedx):

[mediawiki/extensions/EventLogging@master] Integrate wikimedia/metrics-platform 1.0.0

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

Change 884300 had a related patch set uploaded (by Phuedx; author: Phuedx):

[mediawiki/extensions/EventLogging@master] Extract EventSubmitter interface

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

Change 884301 abandoned by Phuedx:

[mediawiki/extensions/EventLogging@master] Integrate wikimedia/metrics-platform 1.0.0

Reason:

See I8031af03a9f229fa7f7577344291647bff25635e

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

Change 883645 merged by jenkins-bot:

[mediawiki/libs/metrics-platform@master] [PHP] Introduce EventSubmitter interface

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

Change 884298 merged by jenkins-bot:

[mediawiki/extensions/EventLogging@master] Extract UserBucketService service class

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

Change 884299 merged by jenkins-bot:

[mediawiki/extensions/EventLogging@master] Extract EventLogging.StreamConfigs service

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

Change 884300 merged by jenkins-bot:

[mediawiki/extensions/EventLogging@master] Extract EventSubmitter interface

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

Before https://gerrit.wikimedia.org/r/c/791319 can be merged, we need to:

  1. Rebase it
  2. Land the patch for T330460: Fix context values in Java client to pass EventLogging validation
  3. Tag a new version of the PHP MPC
  4. Update the version of the PHP MPC in mediawiki/vendor to the above

/cc @CCicalese_WMF

Edit

#2 is done. I'm testing the PHP MPC now.

Change 791319 merged by jenkins-bot:

[mediawiki/extensions/EventLogging@master] Integrate wikimedia/metrics-platform 2.0.0

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