PHP logging
EventLogging::logEvent( 'ModuleStorage', 6978194, $event );
extension.json setup for JavaScript logging
{
"attributes": {
"EventLogging": {
"Schemas": {
"ModuleStorage": 6978194
}
}
}
}
JavaScript logging
mw.track( 'event.ModuleStorage', { /* ... */ } );
From Meta, a Wikimedia project coordination wiki
description | "A record of ResourceLoader performance, collected as part of the mw.loader.store performance evaluation." |
---|
properties | experimentGroup | description | "Group assignment: either 1 (control) or 2 (experiment)." |
---|
required | true |
---|
enum | |
---|
type | "integer" |
---|
|
---|
experimentId | description | "A random string that is generated on group assignment and logged with every subsequent event." |
---|
required | true |
---|
type | "string" |
---|
|
---|
loadIndex | description | "Load index (completed page loads since bucketing)" |
---|
required | true |
---|
type | "integer" |
---|
|
---|
loadedModulesCount | description | "The number of loaded ResourceLoader modules on the current page." |
---|
required | true |
---|
type | "integer" |
---|
|
---|
loadedModulesSize | description | "Total size (in bytes) of loaded ResourceLoader modules on the current page," |
---|
required | true |
---|
type | "integer" |
---|
|
---|
moduleStoreEnabled | description | "Whether the module store was enabled. Expected to be true for users in experiment group and false for control." |
---|
required | true |
---|
type | "boolean" |
---|
|
---|
moduleStoreHits | description | "Number of modules that were loaded from localStorage, or unset if module storage not enabled." |
---|
type | "integer" |
---|
|
---|
moduleStoreMisses | description | "Number of modules that were looked up in localStorage but were not available. Unset if module storage is not enabled." |
---|
type | "integer" |
---|
|
---|
moduleStoreExpired | description | "Number of modules that had to be evicted from the cache, or unset if module storage is not enabled." |
---|
type | "integer" |
---|
|
---|
moduleLoadingTime | description | "Number of milliseconds between ResourceLoader initialization and the start of the window load event." |
---|
required | true |
---|
type | "integer" |
---|
|
---|
totalLoadingTime | description | "Number of milliseconds between JavaScript initialization and the start of the window load event." |
---|
required | true |
---|
type | "integer" |
---|
|
---|
mobileMode | description | "If in mobile view, specifies the mobile mode. Absent otherwise." |
---|
enum | |
---|
type | "string" |
---|
|
---|
userAgent | description | "Browser's user-agent string." |
---|
required | true |
---|
type | "string" |
---|
|
---|
|
---|