mediawiki-extensions-Visual.../modules/ve-mw/init
Sam Smith ddb5ac3a14 logger: Also log VisualEditorFeatureUsage events via Metrics Platform
The VisualEditorFeatureUsage instrument is a candidate for migration to
the Metrics Platform [0]. The first step of the migration is to log
events both using the Event Platform directly (i.e. via
mw.eventLog.submit()) and using the Metrics Platform client (i.e. via
mw.eventLog.dispatch()).

The Metrics Platform Client can mix in additional information -
so-called context attributes [1] - based on the stream configuration.
The majority of the default values mixed into each event are already
known to the Metrics Platform Client.

Note well that the Metrics Platform client will not log an event without
one or more streams being configured to receive that event. Therefore,
this change is a NOP.

An example stream configuration is given in [2].

[0] https://wikitech.wikimedia.org/wiki/Metrics_Platform
[1] https://gerrit.wikimedia.org/g/mediawiki/libs/metrics-platform/
+/aed6738b845/js/src/StreamConfig.d.ts#31
[2] https://phabricator.wikimedia.org/T309602#7973206

Bug: T309602
Change-Id: If40fcc6cae371788b98365953218300a5c0b3ca1
2022-10-19 22:53:47 +00:00
..
apiresponsecache Add and fix default values in parameter documentation 2022-02-21 13:19:21 +00:00
styles Limit toolbar top border fix to vector-legacy 2022-08-10 20:38:20 +02:00
targets Merge "De-duplicate replacePageContent methods between desktop and mobile" 2022-09-29 14:00:00 +00:00
ve.init.mw.ArticleTargetEvents.js Prefere ve.extendObject over $.extend 2021-11-15 21:30:19 +00:00
ve.init.mw.js build: Update eslint-config-wikimedia to 0.16.0 2020-06-02 21:30:00 +01:00
ve.init.mw.Platform.init.js doc: Bump copyright year for 2020 2020-01-08 09:13:24 -08:00
ve.init.mw.Platform.js mw.Platform: Fix parent constructor call 2022-06-15 16:46:09 +01:00
ve.init.mw.SaveErrorHandler.js Remove @param/@return docs that literally repeat the code 2021-06-14 15:44:51 +02:00
ve.init.mw.trackSubscriber.js logger: Also log VisualEditorFeatureUsage events via Metrics Platform 2022-10-19 22:53:47 +00:00
ve.init.mw.ViewportZoomHandler.js doc: Bump copyright year for 2020 2020-01-08 09:13:24 -08:00