X-Git-Url: http://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2FGlobalFunctions.php;h=b421f96caa08823415b073834b071dcda4fc0f40;hp=0d669083b9e6f72c7d4842024a44b666fd1aa4f4;hb=a303296f2730d6279a249bde77f3e0b9b42e494f;hpb=4d5c06607fb34f5140d78e22a4609400d46cb797 diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index 0d669083b9..b421f96caa 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -1195,6 +1195,7 @@ function wfLogProfilingData() { $statsdPort = isset( $statsdServer[1] ) ? $statsdServer[1] : 8125; $statsdSender = new SocketSender( $statsdHost, $statsdPort ); $statsdClient = new SamplingStatsdClient( $statsdSender, true, false ); + $statsdClient->setSamplingRates( $config->get( 'StatsdSamplingRates' ) ); $statsdClient->send( $context->getStats()->getBuffer() ); } catch ( Exception $ex ) { MWExceptionHandler::logException( $ex );