PHP logging

EventLogging::logEvent( 'NavigationTiming', 18435897, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"NavigationTiming": 18435897
			}
		}
	}
}

JavaScript logging

mw.track( 'event.NavigationTiming', { /* ... */ } );

Schema:NavigationTiming

From Meta, a Wikimedia project coordination wiki
Revision 18435897
Jump to navigation Jump to search
description"Represents a set of client-side latency measurements provided by NavigationTiming API"
properties
action
description"Value of 'wgAction': view', 'submit', 'history', etc. Unset for special pages."
type"string"
connectEnd
description"The time immediately after the user agent finishes establishing the connection to the server to retrieve the current document."
type"integer"
connectStart
description"The time immediately before the user agent start establishing the connection to the server to retrieve the document."
type"integer"
dnsLookup
description"Time it took to resolve names (domainLookupEnd - domainLookupStart)."
type"integer"
domComplete
description"The time immediately before the user agent sets the current document readiness to "complete"."
type"integer"
domInteractive
description"The time immediately before the user agent sets the current document readiness to "interactive"."
type"integer"
netinfoEffectiveConnectionType
description"The browser's impression of the connection type, based on bandwidth/RTT measurements. See https://developer.mozilla.org/en-US/docs/Web/API/NetworkInformation"
type"string"
fetchStart
description"The time immediately before the user agent starts checking any relevant application caches."
type"integer"
gaps
description"The gaps in the Navigation Timing metrics. Calculated by taking the sum of: domainLookupStart - fetchStart, connectStart - domainLookupEnd, requestStart - connectEnd and loadEventStart - domComplete"
type"integer"
isAnon
description"True if the user was anonymous; false if logged in."
requiredtrue
type"boolean"
isOversample
description"Whether this request is an oversample, or a standard sample."
type"boolean"
loadEventEnd
description"The time when the load event of the current document is completed."
type"integer"
loadEventStart
description"The time immediately before the load event of the current document is fired."
type"integer"
mobileMode
description"If in mobile view, specifies the mobile mode. Absent otherwise."
enum
"alpha"
"beta"
"stable"
type"string"
mediaWikiVersion
description"MediaWiki version string (same as `wgVersion`)"
type"string"
originCountry
description"Country in which request originated, based on GeoIP look-up."
type"string"
oversampleReason
description"The reason that this request was oversampled"
type"string"
namespaceId
description"`page_namespace` of the requested page. Unset for special pages."
type"integer"
redirecting
description"Time spent following redirects."
type"integer"
requestStart
description"the time immediately before the user agent starts requesting the current document from the server, or from relevant application caches or from local resources."
type"integer"
responseEnd
description"the time immediately after the user agent receives the last byte of the current document or immediately before the transport connection is closed, whichever comes first."
type"integer"
responseStart
description"The time immediately after the user agent receives the first byte of the response from the server, or from relevant application caches or from local resources."
type"integer"
secureConnectionStart
description"The time immediately before the user agent starts the handshake process to secure the current connection."
type"integer"
unload
description"The time spent unload (unloadEventEnd - unloadEventStart)"
type"integer"
mediaWikiLoadEnd
description"The time at which all ResourceLoader modules for this page have completed loading and executing."
type"integer"
revId
description"Revision ID of requested page. Unset for special pages."
type"integer"
firstPaint
description"The time when something is first displayed on the screen."
type"integer"
RSI
description"RUMSpeedIndex. Estimate of the SpeedIndex value based on ResourceTiming data."
type"integer"
mwSpecialPageName
description"If the page being measured is a Special Page, this will contain the name of the page"
type"string"
pageviewToken
description"Token unique to current page's JS execution context. Used to link NavTiming data to survey responses."
type"string"
transferSize
description"Transfer size of the main document, in octets."
type"integer"
deviceMemory
description"The available RAM on the device, in MB. See https://developer.mozilla.org/en-US/docs/Web/API/Navigator/deviceMemory"
type"number"