« ext-EventLogging.php

code reviewgit-loggit-blameraw text


<?php

// Inline comments are often used for noting the task(s) associated with specific configuration
// and requiring comments to be on their own line would reduce readability for this file
// phpcs:disable MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment

/**
 * Configuration for the EventLogging extension.
 */

return [

// List of streams to register for use with the EventLogging extension.
// EventLogging will request the stream config (defined in wgEventStreams
// in ext-EventStreamConfig.php) for each of the stream names listed here.
'wgEventLoggingStreamNames' => [
	'default' => [
		'eventlogging_CentralNoticeBannerHistory',
		'eventlogging_CentralNoticeImpression',
		'eventlogging_ContentTranslationAbuseFilter',
		'eventlogging_CodeMirrorUsage',
		'eventlogging_CpuBenchmark',
		'eventlogging_EditAttemptStep',
		'eventlogging_HelpPanel',
		'eventlogging_HomepageModule',
		'eventlogging_HomepageVisit',
		'eventlogging_LandingPageImpression',
		'eventlogging_NavigationTiming',
		'eventlogging_NewcomerTask',
		'eventlogging_PaintTiming',
		'eventlogging_PrefUpdate',
		'eventlogging_QuickSurveyInitiation',
		'eventlogging_QuickSurveysResponses',
		'eventlogging_ReferencePreviewsBaseline',
		'eventlogging_ReferencePreviewsCite',
		'eventlogging_ReferencePreviewsPopups',
		'eventlogging_SaveTiming',
		'eventlogging_ServerSideAccountCreation',
		'eventlogging_SpecialInvestigate',
		'eventlogging_SearchSatisfaction',
		'eventlogging_TemplateDataApi',
		'eventlogging_TemplateDataEditor',
		'eventlogging_TemplateWizard',
		'eventlogging_Test',
		'eventlogging_UniversalLanguageSelector',
		'eventlogging_VirtualPageView',
		'eventlogging_VisualEditorFeatureUse',
		'eventlogging_VisualEditorTemplateDialogUse',
		'eventlogging_WikibaseTermboxInteraction',
		'eventlogging_WikidataCompletionSearchClicks',
		'eventlogging_WMDEBannerEvents',
		'eventlogging_WMDEBannerInteractions',
		'eventlogging_WMDEBannerSizeIssue',
		'mediawiki.client.session_tick',
		'mediawiki.content_translation_event',
		'mediawiki.talk_page_edit',
		'mediawiki.mediasearch_interaction',
		'mediawiki.searchpreview',
		'mediawiki.structured_task.article.link_suggestion_interaction',
		'mediawiki.structured_task.article.image_suggestion_interaction',
		'mediawiki.pref_diff',
		'mediawiki.skin_diff',
		'mediawiki.reading_depth',
		'mediawiki.web_ui_scroll',
		'mediawiki.welcomesurvey.interaction',
		'test.instrumentation',
		'test.instrumentation.sampled',
		'wd_propertysuggester.client_side_property_request',
		'wd_propertysuggester.server_side_property_request',
		'mediawiki.mentor_dashboard.visit',
		'mediawiki.mentor_dashboard.personalized_praise',
		'mediawiki.mentor_dashboard.interaction',
		'mediawiki.ipinfo_interaction',
		'mediawiki.ip_reputation.score',
		'mediawiki.hcaptcha.edit',
		'mediawiki.hcaptcha.risk_score',
		'mediawiki.editgrowthconfig',
		'mediawiki.accountcreation_block',
		'mediawiki.editattempt_block',
		'mediawiki.maps_interaction',
		'development.network.probe',
		'mediawiki.web_ui_actions',
		'mediawiki.web_ui_scroll_migrated',
		'mediawiki.product_metrics.checkuser_ip_auto_reveal_interaction',
		'mediawiki.product_metrics.suggested_investigations_interaction',
		'mediawiki.product_metrics.incident_reporting_system_interaction',
		'mediawiki.product_metrics.wikifunctions_ui',
		'mediawiki.product_metrics.wikilambda_api',
		'mediawiki.product_metrics.translate_extension',
		'mediawiki.product_metrics.translation_mint_for_readers',
		'mediawiki.product_metrics.translation_mint_for_readers.experiments',
		'mediawiki.product_metrics.homepage_module_interaction',
		'mediawiki.product_metrics.growth_product_interaction',
		'mediawiki.product_metrics.ext_massdelete',
		'mediawiki.product_metrics.special_create_account',
		'mediawiki.product_metrics.user_info_card_interaction',
		'mediawiki.product_metrics.WatchlistClickTracker',
		'mediawiki.accountcreation.account_conversion',
		'mediawiki.accountcreation.login',
		'product_metrics.app_base',
		'product_metrics.web_base',
		'product_metrics.web_base_with_ip',
		'wikibase.client.interaction',
		'mediawiki.product_metrics.readerexperiments_imagebrowsing',
		'mediawiki.product_metrics.readerexperiments_stickyheaders',
		'mediawiki.product_metrics.reading_list',
		'mediawiki.product_metrics.contributors.experiments',
	],
],

// EventLogging JavaScript client code will POST events to this URI.
'wgEventLoggingServiceUri' => [
	'default' => 'https://intake-analytics.wikimedia.org/v1/events?hasty=true',
],

// Historically, EventLogging would register Schemas and revisions it used
// via the EventLoggingSchemas extension attribute like in
// https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/extensions/WikimediaEvents/+/master/extension.json#51
// It also overrides these with the $wgEventLoggingSchemas global.
// While in the process of migrating legacy EventLogging events to event platform,
// use the wgEventLoggingSchemas to override the extension attribute for an incremental rollout.
// This will be removed from mediawiki-config once all schemas have been successfully migrated
// and the EventLoggingSchemas extension attributes are all set to Event Platform schema URIs.
// ONLY Legacy EventLogging schemas need to go here.  This is the switch that tells
// EventLogging to POST to EventGate rather than GET to EventLogging beacon.
// https://phabricator.wikimedia.org/T238230
'wgEventLoggingSchemas' => [
	'default' => [
	],
],

];