Jump to content

Schema:WebClientError

PHP logging

EventLogging::logEvent( 'WebClientError', 18362918, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"WebClientError": 18362918
			}
		}
	}
}

JavaScript logging

mw.track( 'event.WebClientError', { /* ... */ } );
From Meta, a Wikimedia project coordination wiki
Revision 18362918
description"Log client side errors. Currently utilised in Minerva but generic enough that it could be used in other places."
properties
sessionToken
type"string"
description"Session token that survives across pages (mw.user.sessionId()), but not browser restarts, used in deterministic user bucketing."
requiredtrue
meta
requiredfalse
type"object"
description"Optional and currently unused. Can be populated with arbitary fields for the purposes of debugging known unknown issues with the purpose of obtaining better understanding."
mobileMode
requiredtrue
type"string"
enum
"stable"
"beta"
"desktop"
description"False if the user is logged in, true otherwise."
isAnon
requiredtrue
type"boolean"
description"False if the user is logged in, true otherwise."
revision
requiredtrue
type"integer"
description"The revision ID for the page accessed when the report was generated."
userUrl
requiredtrue
type"string"
description"The full url (as in the browser window) at time of error."
wgVersion
requiredtrue
type"string"
description"Value of wgVersion."
skin
requiredtrue
type"string"
description"The skin."
errorLineNumber
requiredtrue
type"integer"
description"The line number of where the report originated."
errorColumnNumber
requiredtrue
type"integer"
description"The character offset of where the report originated."
errorUrl
requiredfalse
type"string"
description"The JavaScript file where the report originated."
errorStackTrace
requiredtrue
type"string"
description"A partial stacktrace that hopefully includes the module and function name where the report originated in MobileFrontend or MinervaNeue. The stack trace is modified to exclude the error URL."
errorMessage
requiredtrue
type"string"
description"Error description."