Notify/StatsD/StatsD.php
protected function send($data)
    {
        if ($this->doNotTrack) {
            return;
        }

        // Wrap this in a try/catch - failures in any of this should be silently ignored
        try {
            $fp = fsockopen("udp://$this->host", $this->port, $errno, $errstr);
            if (!$fp) {
                return;
            }
            fwrite($fp, $data);
            fclose($fp);
        } catch (\Exception $e) {
        }
    }
protected function send($data)
    {
        if ($this->doNotTrack) {
            return;
        }

        // Wrap this in a try/catch - failures in any of this should be silently ignored
        try {
            $fp = fsockopen("udp://$this->host", $this->port, $errno, $errstr);
            if (!$fp) {
                return;
            }
            fwrite($fp, $data);
            fclose($fp);
        } catch (\Exception $e) {
        }
    }
Sends metrics over UDP