php-spx
php-spx copied to clipboard
The WEB GUI does not display any results.
trafficstars
I have a Notice: PHP message: PHP Notice: SPX: spx_profiler_stop (): profiling is not enabled in index.php
// index.php
<?php
spx_profiler_start();
require 'kernel.php';
$router->resolve();
spx_profiler_stop()
// docker-php-ext-spx.ini
extension=spx.so
spx.http_enabled=1
spx.http_key="dev"
spx.http_ip_whitelist=175.10.0.100
spx.data_dir=/var/www/html/spx_dumps
//SPX Control Panel command line prefix value:
SPX_REPORT=full SPX_ENABLED=1 SPX_SAMPLING_PERIOD=5 SPX_METRICS=ct,it,io,ior,iow
php8, nginx, alpine OS
The service processes about 1000 API requests per minute, but SPX Control Panel don't show statistics

spx_profiler_stop(): profiling is not enabled in logs
Profiling is simply not enabled. What is the PHP SAPI ? If it is a CLI script the command line prefix must be added on your own, the control panel only displays it for the sake of convenience.