mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-24 07:43:47 +00:00
Add statsd counter for languages A/B test
Bug: T286932 Change-Id: I86ef358bfd5316e1f89fb1fde16f1cddade4d211
This commit is contained in:
parent
7205a0b8e3
commit
f89a5b2d0b
|
@ -134,6 +134,16 @@ return [
|
|||
]
|
||||
);
|
||||
|
||||
// Temporary T286932 - remove after languages A/B test is finished.
|
||||
if ( $context->getUser()->isRegistered() ) {
|
||||
$bucket = 'vector.language_test_' . (
|
||||
$featureManager->isFeatureEnabled( Constants::FEATURE_CONSOLIDATE_USER_LINKS )
|
||||
? 'a'
|
||||
: 'b'
|
||||
);
|
||||
$services->getStatsdDataFactory()->increment( $bucket );
|
||||
}
|
||||
|
||||
return $featureManager;
|
||||
}
|
||||
];
|
||||
|
|
Loading…
Reference in a new issue