public static function load()
    {
        if (!extension_loaded('opencensus')) {
            trigger_error('opencensus extension required to load Memcached integrations.', E_USER_WARNING);
            return;
        }

        // bool Memcached::add ( string $key , mixed $value [, int $expiration ] )
        opencensus_trace_method('Memcached', 'add', [self::class, 'handleAttributes']);

        // bool Memcached::addByKey ( string $server_key , string $key , mixed $value [, int $expiration ] )
        opencensus_trace_method('Memcached', 'addByKey', [self::class, 'handleAttributesByKey']);

        // bool Memcached::append ( string $key , string $value )
        opencensus_trace_method('Memcached', 'append', [self::class, 'handleAttributes']);

        // bool Memcached::appendByKey ( string $server_key , string $key , string $value )
        opencensus_trace_method('Memcached', 'appendByKey', [self::class, 'handleAttributesByKey']);

        // bool Memcached::cas ( float $cas_token , string $key , mixed $value [, int $expiration ] )
        opencensus_trace_method('Memcached', 'cas', [self::class, 'handleCas']);

        // bool Memcached::casByKey ( float $cas_token , string $server_key , string $key , mixed $value
        //                            [, int $expiration ] )
        opencensus_trace_method('Memcached', 'casByKey', [self::class, 'handleCasByKey']);

        // int Memcached::decrement ( string $key [, int $offset = 1 [, int $initial_value = 0 [, int $expiry = 0 ]]] )
        opencensus_trace_method('Memcached', 'decrement', [self::class, 'handleAttributes']);

        // int Memcached::decrementByKey ( string $server_key , string $key [, int $offset = 1 [, int $initial_value = 0
        //                                 [, int $expiry = 0 ]]] )
        opencensus_trace_method('Memcached', 'decrementByKey', [self::class, 'handleAttributesByKey']);

        // bool Memcached::delete ( string $key [, int $time = 0 ] )
        opencensus_trace_method('Memcached', 'delete', [self::class, 'handleAttributes']);

        // bool Memcached::deleteByKey ( string $server_key , string $key [, int $time = 0 ] )
        opencensus_trace_method('Memcached', 'deleteByKey', [self::class, 'handleAttributesByKey']);

        // bool Memcached::flush ([ int $delay = 0 ] )
        opencensus_trace_method('Memcached', 'flush');

        // mixed Memcached::get ( string $key [, callable $cache_cb [, int &$flags ]] )
        opencensus_trace_method('Memcached', 'get', [self::class, 'handleAttributes']);

        // mixed Memcached::getByKey ( string $server_key , string $key [, callable $cache_cb [, int $flags ]] )
        opencensus_trace_method('Memcached', 'getByKey', [self::class, 'handleAttributesByKey']);

        // mixed Memcached::getMulti ( array $keys [, int $flags ] )
        opencensus_trace_method('Memcached', 'getMulti', [self::class, 'handleAttributes']);

        // array Memcached::getMultiByKey ( string $server_key , array $keys [, int $flags ] )
        opencensus_trace_method('Memcached', 'getMultiByKey', [self::class, 'handleAttributesByKey']);

        // int Memcached::increment ( string $key [, int $offset = 1 [, int $initial_value = 0 [, int $expiry = 0 ]]] )
        opencensus_trace_method('Memcached', 'increment', [self::class, 'handleAttributes']);

        // int Memcached::incrementByKey ( string $server_key , string $key [, int $offset = 1 [, int $initial_value = 0
        //                                 [, int $expiry = 0 ]]] )
        opencensus_trace_method('Memcached', 'incrementByKey', [self::class, 'handleAttributesByKey']);

        // bool Memcached::prepend ( string $key , string $value )
        opencensus_trace_method('Memcached', 'prepend', [self::class, 'handleAttributes']);

        // bool Memcached::prependByKey ( string $server_key , string $key , string $value )
        opencensus_trace_method('Memcached', 'prependByKey', [self::class, 'handleAttributesByKey']);

        // bool Memcached::replace ( string $key , mixed $value [, int $expiration ] )
        opencensus_trace_method('Memcached', 'replace', [self::class, 'handleAttributes']);

        // bool Memcached::replaceByKey ( string $server_key , string $key , mixed $value [, int $expiration ] )
        opencensus_trace_method('Memcached', 'replaceByKey', [self::class, 'handleAttributesByKey']);

        // bool Memcached::set ( string $key , mixed $value [, int $expiration ] )
        opencensus_trace_method('Memcached', 'set', [self::class, 'handleAttributes']);

        // bool Memcached::setByKey ( string $server_key , string $key , mixed $value [, int $expiration ] )
        opencensus_trace_method('Memcached', 'setByKey', [self::class, 'handleAttributesByKey']);

        // bool Memcached::setMulti ( array $items [, int $expiration ] )
        opencensus_trace_method('Memcached', 'setMulti', [self::class, 'handleSetMulti']);

        // bool Memcached::setMultiByKey ( string $server_key , array $items [, int $expiration ] )
        opencensus_trace_method('Memcached', 'setMultiByKey', [self::class, 'handleSetMultiByKey']);
    }
public static function load()
    {
        if (!extension_loaded('opencensus')) {
            trigger_error('opencensus extension required to load Memcached integrations.', E_USER_WARNING);
            return;
        }

        // bool Memcached::add ( string $key , mixed $value [, int $expiration ] )
        opencensus_trace_method('Memcached', 'add', [self::class, 'handleAttributes']);

        // bool Memcached::addByKey ( string $server_key , string $key , mixed $value [, int $expiration ] )
        opencensus_trace_method('Memcached', 'addByKey', [self::class, 'handleAttributesByKey']);

        // bool Memcached::append ( string $key , string $value )
        opencensus_trace_method('Memcached', 'append', [self::class, 'handleAttributes']);

        // bool Memcached::appendByKey ( string $server_key , string $key , string $value )
        opencensus_trace_method('Memcached', 'appendByKey', [self::class, 'handleAttributesByKey']);

        // bool Memcached::cas ( float $cas_token , string $key , mixed $value [, int $expiration ] )
        opencensus_trace_method('Memcached', 'cas', [self::class, 'handleCas']);

        // bool Memcached::casByKey ( float $cas_token , string $server_key , string $key , mixed $value
        //                            [, int $expiration ] )
        opencensus_trace_method('Memcached', 'casByKey', [self::class, 'handleCasByKey']);

        // int Memcached::decrement ( string $key [, int $offset = 1 [, int $initial_value = 0 [, int $expiry = 0 ]]] )
        opencensus_trace_method('Memcached', 'decrement', [self::class, 'handleAttributes']);

        // int Memcached::decrementByKey ( string $server_key , string $key [, int $offset = 1 [, int $initial_value = 0
        //                                 [, int $expiry = 0 ]]] )
        opencensus_trace_method('Memcached', 'decrementByKey', [self::class, 'handleAttributesByKey']);

        // bool Memcached::delete ( string $key [, int $time = 0 ] )
        opencensus_trace_method('Memcached', 'delete', [self::class, 'handleAttributes']);

        // bool Memcached::deleteByKey ( string $server_key , string $key [, int $time = 0 ] )
        opencensus_trace_method('Memcached', 'deleteByKey', [self::class, 'handleAttributesByKey']);

        // bool Memcached::flush ([ int $delay = 0 ] )
        opencensus_trace_method('Memcached', 'flush');

        // mixed Memcached::get ( string $key [, callable $cache_cb [, int &$flags ]] )
        opencensus_trace_method('Memcached', 'get', [self::class, 'handleAttributes']);

        // mixed Memcached::getByKey ( string $server_key , string $key [, callable $cache_cb [, int $flags ]] )
        opencensus_trace_method('Memcached', 'getByKey', [self::class, 'handleAttributesByKey']);

        // mixed Memcached::getMulti ( array $keys [, int $flags ] )
        opencensus_trace_method('Memcached', 'getMulti', [self::class, 'handleAttributes']);

        // array Memcached::getMultiByKey ( string $server_key , array $keys [, int $flags ] )
        opencensus_trace_method('Memcached', 'getMultiByKey', [self::class, 'handleAttributesByKey']);

        // int Memcached::increment ( string $key [, int $offset = 1 [, int $initial_value = 0 [, int $expiry = 0 ]]] )
        opencensus_trace_method('Memcached', 'increment', [self::class, 'handleAttributes']);

        // int Memcached::incrementByKey ( string $server_key , string $key [, int $offset = 1 [, int $initial_value = 0
        //                                 [, int $expiry = 0 ]]] )
        opencensus_trace_method('Memcached', 'incrementByKey', [self::class, 'handleAttributesByKey']);

        // bool Memcached::prepend ( string $key , string $value )
        opencensus_trace_method('Memcached', 'prepend', [self::class, 'handleAttributes']);

        // bool Memcached::prependByKey ( string $server_key , string $key , string $value )
        opencensus_trace_method('Memcached', 'prependByKey', [self::class, 'handleAttributesByKey']);

        // bool Memcached::replace ( string $key , mixed $value [, int $expiration ] )
        opencensus_trace_method('Memcached', 'replace', [self::class, 'handleAttributes']);

        // bool Memcached::replaceByKey ( string $server_key , string $key , mixed $value [, int $expiration ] )
        opencensus_trace_method('Memcached', 'replaceByKey', [self::class, 'handleAttributesByKey']);

        // bool Memcached::set ( string $key , mixed $value [, int $expiration ] )
        opencensus_trace_method('Memcached', 'set', [self::class, 'handleAttributes']);

        // bool Memcached::setByKey ( string $server_key , string $key , mixed $value [, int $expiration ] )
        opencensus_trace_method('Memcached', 'setByKey', [self::class, 'handleAttributesByKey']);

        // bool Memcached::setMulti ( array $items [, int $expiration ] )
        opencensus_trace_method('Memcached', 'setMulti', [self::class, 'handleSetMulti']);

        // bool Memcached::setMultiByKey ( string $server_key , array $items [, int $expiration ] )
        opencensus_trace_method('Memcached', 'setMultiByKey', [self::class, 'handleSetMultiByKey']);
    }
public static function load ( ) { if ( ! extension_loaded ( 'opencensus' ) ) { trigger_error ( 'opencensus extension required to load Memcached integrations.' , E_USER_WARNING ) ; return ; } // bool Memcached::add ( string $key , mixed $value [, int $expiration ] ) opencensus_trace_method ( 'Memcached' , 'add' , [ self :: class , 'handleAttributes' ] ) ; // bool Memcached::addByKey ( string $server_key , string $key , mixed $value [, int $expiration ] ) opencensus_trace_method ( 'Memcached' , 'addByKey' , [ self :: class , 'handleAttributesByKey' ] ) ; // bool Memcached::append ( string $key , string $value ) opencensus_trace_method ( 'Memcached' , 'append' , [ self :: class , 'handleAttributes' ] ) ; // bool Memcached::appendByKey ( string $server_key , string $key , string $value ) opencensus_trace_method ( 'Memcached' , 'appendByKey' , [ self :: class , 'handleAttributesByKey' ] ) ; // bool Memcached::cas ( float $cas_token , string $key , mixed $value [, int $expiration ] ) opencensus_trace_method ( 'Memcached' , 'cas' , [ self :: class , 'handleCas' ] ) ; // bool Memcached::casByKey ( float $cas_token , string $server_key , string $key , mixed $value //                            [, int $expiration ] ) opencensus_trace_method ( 'Memcached' , 'casByKey' , [ self :: class , 'handleCasByKey' ] ) ; // int Memcached::decrement ( string $key [, int $offset = 1 [, int $initial_value = 0 [, int $expiry = 0 ]]] ) opencensus_trace_method ( 'Memcached' , 'decrement' , [ self :: class , 'handleAttributes' ] ) ; // int Memcached::decrementByKey ( string $server_key , string $key [, int $offset = 1 [, int $initial_value = 0 //                                 [, int $expiry = 0 ]]] ) opencensus_trace_method ( 'Memcached' , 'decrementByKey' , [ self :: class , 'handleAttributesByKey' ] ) ; // bool Memcached::delete ( string $key [, int $time = 0 ] ) opencensus_trace_method ( 'Memcached' , 'delete' , [ self :: class , 'handleAttributes' ] ) ; // bool Memcached::deleteByKey ( string $server_key , string $key [, int $time = 0 ] ) opencensus_trace_method ( 'Memcached' , 'deleteByKey' , [ self :: class , 'handleAttributesByKey' ] ) ; // bool Memcached::flush ([ int $delay = 0 ] ) opencensus_trace_method ( 'Memcached' , 'flush' ) ; // mixed Memcached::get ( string $key [, callable $cache_cb [, int &$flags ]] ) opencensus_trace_method ( 'Memcached' , 'get' , [ self :: class , 'handleAttributes' ] ) ; // mixed Memcached::getByKey ( string $server_key , string $key [, callable $cache_cb [, int $flags ]] ) opencensus_trace_method ( 'Memcached' , 'getByKey' , [ self :: class , 'handleAttributesByKey' ] ) ; // mixed Memcached::getMulti ( array $keys [, int $flags ] ) opencensus_trace_method ( 'Memcached' , 'getMulti' , [ self :: class , 'handleAttributes' ] ) ; // array Memcached::getMultiByKey ( string $server_key , array $keys [, int $flags ] ) opencensus_trace_method ( 'Memcached' , 'getMultiByKey' , [ self :: class , 'handleAttributesByKey' ] ) ; // int Memcached::increment ( string $key [, int $offset = 1 [, int $initial_value = 0 [, int $expiry = 0 ]]] ) opencensus_trace_method ( 'Memcached' , 'increment' , [ self :: class , 'handleAttributes' ] ) ; // int Memcached::incrementByKey ( string $server_key , string $key [, int $offset = 1 [, int $initial_value = 0 //                                 [, int $expiry = 0 ]]] ) opencensus_trace_method ( 'Memcached' , 'incrementByKey' , [ self :: class , 'handleAttributesByKey' ] ) ; // bool Memcached::prepend ( string $key , string $value ) opencensus_trace_method ( 'Memcached' , 'prepend' , [ self :: class , 'handleAttributes' ] ) ; // bool Memcached::prependByKey ( string $server_key , string $key , string $value ) opencensus_trace_method ( 'Memcached' , 'prependByKey' , [ self :: class , 'handleAttributesByKey' ] ) ; // bool Memcached::replace ( string $key , mixed $value [, int $expiration ] ) opencensus_trace_method ( 'Memcached' , 'replace' , [ self :: class , 'handleAttributes' ] ) ; // bool Memcached::replaceByKey ( string $server_key , string $key , mixed $value [, int $expiration ] ) opencensus_trace_method ( 'Memcached' , 'replaceByKey' , [ self :: class , 'handleAttributesByKey' ] ) ; // bool Memcached::set ( string $key , mixed $value [, int $expiration ] ) opencensus_trace_method ( 'Memcached' , 'set' , [ self :: class , 'handleAttributes' ] ) ; // bool Memcached::setByKey ( string $server_key , string $key , mixed $value [, int $expiration ] ) opencensus_trace_method ( 'Memcached' , 'setByKey' , [ self :: class , 'handleAttributesByKey' ] ) ; // bool Memcached::setMulti ( array $items [, int $expiration ] ) opencensus_trace_method ( 'Memcached' , 'setMulti' , [ self :: class , 'handleSetMulti' ] ) ; // bool Memcached::setMultiByKey ( string $server_key , array $items [, int $expiration ] ) opencensus_trace_method ( 'Memcached' , 'setMultiByKey' , [ self :: class , 'handleSetMultiByKey' ] ) ; }
Static method to add instrumentation to memcache requests
Static method to add instrumentation to memcache requests