Sentry/Client.php
function send(&$data)
    {
        if (
        	is_callable($this->send_callback)
			&& false === call_user_func_array($this->send_callback, array(&$data))
		) {
            // if send_callback returns false, end native send
            return;
        }

        if (!$this->server) {
            return;
        }

        if ($this->transport) {
            return call_user_func($this->transport, $this, $data);
        }

        $message = $this->encode($data);

        $headers = array(
            'User-Agent' => $this->getUserAgent(),
            'X-Sentry-Auth' => $this->getAuthHeader(),
            'Content-Type' => 'application/octet-stream'
        );

        $this->send_remote($this->server, $message, $headers);
    }
function send(&$data)
    {
        if (
        	is_callable($this->send_callback)
			&& false === call_user_func_array($this->send_callback, array(&$data))
		) {
            // if send_callback returns false, end native send
            return;
        }

        if (!$this->server) {
            return;
        }

        if ($this->transport) {
            return call_user_func($this->transport, $this, $data);
        }

        $message = $this->encode($data);

        $headers = array(
            'User-Agent' => $this->getUserAgent(),
            'X-Sentry-Auth' => $this->getAuthHeader(),
            'Content-Type' => 'application/octet-stream'
        );

        $this->send_remote($this->server, $message, $headers);
    }
function send ( & $ data ) { if ( is_callable ( $ this -> send_callback ) && false === call_user_func_array ( $ this -> send_callback , array ( & $ data ) ) ) { // if send_callback returns false, end native send return ; } if ( ! $ this -> server ) { return ; } if ( $ this -> transport ) { return call_user_func ( $ this -> transport , $ this , $ data ) ; } $ message = $ this -> encode ( $ data ) ; $ headers = array ( 'User-Agent' => $ this -> getUserAgent ( ) , 'X-Sentry-Auth' => $ this -> getAuthHeader ( ) , 'Content-Type' => 'application/octet-stream' ) ; $ this -> send_remote ( $ this -> server , $ message , $ headers ) ; }
Wrapper to handle encoding and sending data to the Sentry API server.

@param array     $data       Associative array of data to log
Wrapper to handle encoding and sending data to the Sentry API server .