protected function create_statsd_handle($opts)
{
// Set default statsd options
$default = ["host" => "127.0.0.1", "port" => 8125, "timeout" => null, "persistent" => false, "namespace" => "opcache"];
$opts = array_merge($opts, $default);
$connection = new \Domnikl\Statsd\Connection\UdpSocket($opts["host"], $opts["port"], $opts["timeout"], $opts["persistent"]);
$this->statsd = new \Domnikl\Statsd\Client($connection, $opts["namespace"]);
}