Page MenuHomePhabricator

Refactor Java MPC's event sending code
Closed, ResolvedPublic

Description

Quoting T281772#8260465:

  1. MetricsClient has the responsibility of maintaining and periodically flushing the queue of events. This should be a separate class/collection of classes that MetricsClient collaborates with (see https://gerrit.wikimedia.org/r/c/mediawiki/libs/metrics-platform/+/820530)

<snip />

  1. Events should be sent in batches. EventGate is capable of accepting multiple events in one request

@Gehel's patch is a great start! It needs to be rebased and more tests need to be added, and then event batching needs to be implemented.

TODO

Event Timeline

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

[mediawiki/libs/metrics-platform@master] [java] Introduce AtomicReference to make streamConfigs thread safe

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

Change 866659 had a related patch set uploaded (by Clare Ming; author: Clare Ming):

[mediawiki/libs/metrics-platform@master] Refactor Java event sending

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

Change 866659 merged by Clare Ming:

[mediawiki/libs/metrics-platform@master] Refactor Java event sending

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