prerequisite
- pinpoint-c-agent module installed
- collect-agent works fine
- copy
Plugins
into root - composer update
- cp
Plugins/Framework/SwooleApp/setting.ini
into root - php run_server.php
-
easyswoole-admin installed
-
copy
Plugins
into root -
Replace composer.json with
Plugins/Framework/EasySwoole/composer.json
andcomposer update
-
cp
Plugins/Framework/EasySwoole/setting.ini
intoPlugins/
-
Enable pinpoint header into easyswoole framework
Example: Plugins/Framework/EasySwoole/easyswoole_example.txt
################################################# define('AOP_CACHE_DIR',__DIR__.'/Cache/'); define('PLUGINS_DIR', __DIR__ . '/Plugins/'); define('PER_REQ_CLASS_NAME','Plugins\Framework\Swoole\Http\Server\PerReqPlugin'); define('APPLICATION_NAME','APP-3'); define('APPLICATION_ID','app-3'); require_once __DIR__. '/vendor/pinpoint-apm/pinpoint-php-aop/auto_pinpointed.php'; #################################################
-
php easyswoole start dev