mediawiki-extensions-Popups/tests/node-qunit
Baha 9a94300858 Log events to statsv for monitoring PagePreviews performance
For logging to work:
1. $wgWMEStatsdBaseUri needs to point to a valid statsv endpoint,
   e.g. 'https://en.wikipedia.org/beacon/statsv'.
2. $wgPopupsStatsvSamplingRate needs to be set. Note that the codebase
   already contains the EventLogging functionality, which is configured
   separately. Separately configuring different logging mechanisms
   allows us to avoid sampling mistakes that may arise while choosing
   one or the other. For example, let's say we want to use EventLogging for
   10% of users and statsv for 5%. We'd sample all users into two
   buckets: 50/50. And then we'd have to set the sampling rates as
   20% and 10% respectively, only because of the bucketing above. To avoid
   this kind of complications, separate sampling rates are used for each
   logging mechanism. This, of course, may result in situations where a
   session is logged via both EventLogging and statsv.
3. The WikimediaEvents extension needs to be installed. The extension
   adds the `ext.wikimediaEvents` module to the output page. The
   logging functionality is delegated to this module.

Notable changes:
* The FETCH_START and FETCH_END actions are converted to a timed action.
* The experiments stub used in tests has been extracted to the stubs
  file.

Logged data is visualized at
https://grafana.wikimedia.org/dashboard/db/reading-web-page-previews

Bug: T157111
Change-Id: If3f1a06f1f623e8e625b6c30a48b7f5aa9de24db
2017-03-14 08:51:10 +00:00
..
changeListeners Log events to statsv for monitoring PagePreviews performance 2017-03-14 08:51:10 +00:00
gateway rest: Always scale thumbnail's largest dimension 2017-03-10 10:44:37 +00:00
preview Test: Migrate preview/model.test.js to node-qunit 2017-02-20 20:01:01 +01:00
reducers Log events to statsv for monitoring PagePreviews performance 2017-03-14 08:51:10 +00:00
actions.test.js Log events to statsv for monitoring PagePreviews performance 2017-03-14 08:51:10 +00:00
changeListener.test.js Test: Migrate changeListener.test.js to node-qunit 2017-02-20 20:01:01 +01:00
counts.test.js Set up qunit running in node to migrate tests to commonjs 2017-02-20 20:01:01 +01:00
integration.test.js Tests: Migrate {integration,actions}.test.js to node qunit 2017-02-27 18:17:28 +01:00
isEnabled.test.js Log events to statsv for monitoring PagePreviews performance 2017-03-14 08:51:10 +00:00
previewBehavior.test.js Tests: Migrate previewBehavior.test.js to node qunit 2017-02-22 12:14:07 +01:00
schema.test.js Tests: Extract createStubMap 2017-03-01 12:40:42 +01:00
settingsDialog.test.js Tests: Migrate settingsDialog.test.js to node qunit 2017-02-22 12:14:07 +01:00
statsvInstrumentation.test.js Log events to statsv for monitoring PagePreviews performance 2017-03-14 08:51:10 +00:00
stubs.js Log events to statsv for monitoring PagePreviews performance 2017-03-14 08:51:10 +00:00
userSettings.test.js Tests: Migrate userSettings.test.js to node-qunit 2017-03-01 12:47:07 +01:00
wait.test.js Test: Migrate wait.test.js to node-qunit 2017-02-22 12:13:37 +01:00