PHP logging

EventLogging::logEvent( 'CompletionSuggestions', 13630018, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"CompletionSuggestions": 13630018
			}
		}
	}
}

JavaScript logging

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

Schema:CompletionSuggestions

From Meta, a Wikimedia project coordination wiki
Revision 13630018
Jump to navigation Jump to search
description"Track the number of results provided to users via the experimental completions api"
properties
bucket
type"string"
requiredtrue
enum
"opensearch"
"cirrus-suggest"
description"Which suggestion backend was used"
numResults
type"integer"
requiredtrue
description"The number of suggestion results provided."
pageViewToken
type"string"
requiredtrue
description"A unique identifier generated per visited page. This allows events from the same page view to be correlated."