Add statsd counter for languages A/B test

Bug: T286932
Change-Id: I86ef358bfd5316e1f89fb1fde16f1cddade4d211
This commit is contained in:
Clare Ming 2021-07-27 10:50:42 -06:00
parent 7205a0b8e3
commit f89a5b2d0b
1 changed files with 10 additions and 0 deletions

View File

@ -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;
}
];