mediawiki/extensions/WikimediaEvents - Gitiles

Wikimedia-specific EventLogging code

Clone this repo:
  1. 02010b7 Add new GlobalBlocking blocked text message keys by Dreamy Jazz · 3 days ago master wmf/branch_cut_pretest
  2. 4209ddb TemporaryAccountsInstrumentation: Track rate of local blocks by Kosta Harlan · 5 days ago
  3. 592a7f7 Track the revert rate of edits by user type by Máté Szabó · 10 days ago wmf/1.43.0-wmf.27
  4. 0058ce9 Track page deletion rate for temp accounts rollout by Máté Szabó · 11 days ago
  5. 762bf1b Merge "feat: Inject `sul3` label to authevents metrics when SUL3 is enabled" by jenkins-bot · 6 days ago

WikimediaEvents

WikimediaEvents houses Wikimedia-specific instrumentation code utilizing EventLogging.

This extension was previously known as 'CoreEvents'; it was renamed so that its name properly reflects its scope, which is not specific to MediaWiki core.

Although the code in this extension was developed with Wikimedia use-cases in mind, you may find that the functionality it implements is useful. You are welcome to use and adapt this extension under the terms of its license.

Ownership

The infrastructure that delivers the instruments is currently maintained by the Data Products team.

The owners of individual instruments is documented in OWNERS.md.

Indeed, when you create a new instrument, you are expected to document the ownership of your instrument. This expectation is enforced by the OwnersStructureTest PHPUnit test, which will fail if the files that make up the instrument aren't listed alongside contact details for you and/or your team and a description of it.

Type Checking

As of I63943fe97730953035a658f967a3d90cea9525a4, you can opt in to using TypeScript to type check your instrument during CI. To do so, add the relative path to your instrument file(s) to the "include" section in tsconfig.json, e.g.

{
  "include": [
    "./path/to/your/instrument.js",

    "modules/index.d.ts"
  ]
}

License

WikimediaEvents is distributed under the GNU General Public License, Version 2, or, at your discretion, any later version. The GNU General Public License is available via the Web at http://www.gnu.org/licenses/gpl-2.0.html.