Ori.livneh has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/53865


Change subject: Enable NavigationTiming on test2 w/sampling factor of 10000
......................................................................

Enable NavigationTiming on test2 w/sampling factor of 10000

With a high sampling factor like that, we likely won't be able to verify the
positive case on test2, but we can at least verify the negative case (not
included in sample). I'll do a follow-up change with default => true if
everything looks OK.

Change-Id: Iac66ead56477cfd3aa7d04e7b28c4d7c056da3fa
---
M wmf-config/CommonSettings.php
M wmf-config/InitialiseSettings.php
2 files changed, 13 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/mediawiki-config 
refs/changes/65/53865/1

diff --git a/wmf-config/CommonSettings.php b/wmf-config/CommonSettings.php
index e6fcace..3488664 100644
--- a/wmf-config/CommonSettings.php
+++ b/wmf-config/CommonSettings.php
@@ -2654,6 +2654,14 @@
        }
 }
 
+if ( $wmgUseEventLogging && $wmgUseNavigationTiming ) {
+       require_once( "$IP/extensions/NavigationTiming/NavigationTiming.php" );
+       // Careful! The LOWER the value, the MORE requests will be logged. A
+       // sampling factor of 1 means log every request. This should not be
+       // lowered without careful coordination with ops.
+       $wgNavigationTimingSamplingFactor = 10000;
+}
+
 if ( $wmgUseUniversalLanguageSelector ) {
        require_once( 
"$IP/extensions/UniversalLanguageSelector/UniversalLanguageSelector.php" );
        $wgULSGeoService = false;
diff --git a/wmf-config/InitialiseSettings.php 
b/wmf-config/InitialiseSettings.php
index d808728..9df0ac6 100644
--- a/wmf-config/InitialiseSettings.php
+++ b/wmf-config/InitialiseSettings.php
@@ -11866,6 +11866,11 @@
        'default' => true,
 ),
 
+'wmgUseNavigationTiming' => array(
+       'default' => false,
+       'test2wiki' => true,
+),
+
 'wmgRelatedSitesPrefixes' => array(
        'default' => array(),
        'wikivoyage' => array(

-- 
To view, visit https://gerrit.wikimedia.org/r/53865
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Iac66ead56477cfd3aa7d04e7b28c4d7c056da3fa
Gerrit-PatchSet: 1
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Ori.livneh <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to