src/SDK/Trace/ExporterFactory.php
// constructs the baseUrl with the arguments retrieved from the raw baseUrl
constructs the baseUrl with the arguments retrieved from the raw baseUrl
constructs the baseUrl with the arguments retrieved from the raw baseUrl
private function parseBaseUrl($dsn)
    {
        if ($dsn == false) {
            throw new InvalidArgumentException('Invalid endpoint');
        }
        $parsedUrl = '';
        $parsedUrl .= empty($dsn->getScheme()) ? '' : $dsn->getScheme() . '://';
        $parsedUrl .= empty($dsn->getHost()) ? '' : $dsn->getHost();
        $parsedUrl .= empty($dsn->getPort()) ? '' : ':' . $dsn->getPort();
        $parsedUrl .= empty($dsn->getPath()) ? '' : $dsn->getPath();
        return $parsedUrl;
    }
private function parseBaseUrl ( $ dsn ) { if ( $ dsn == false ) { throw new InvalidArgumentException ( 'Invalid endpoint' ) ; } $ parsedUrl = '' ; $ parsedUrl .= empty ( $ dsn -> getScheme ( ) ) ? '' : $ dsn -> getScheme ( ) . '://' ; $ parsedUrl .= empty ( $ dsn -> getHost ( ) ) ? '' : $ dsn -> getHost ( ) ; $ parsedUrl .= empty ( $ dsn -> getPort ( ) ) ? '' : ':' . $ dsn -> getPort ( ) ; $ parsedUrl .= empty ( $ dsn -> getPath ( ) ) ? '' : $ dsn -> getPath ( ) ; return $ parsedUrl ; }
constructs the baseUrl with the arguments retrieved from the raw baseUrl
constructs the baseUrl with the arguments retrieved from the raw baseUrl