getRPCAddress()) ); $metrics->declare( 'test', RoadRunner\Metrics\Collector::counter()->withHelp('Test counter') ); while ($req = $worker->waitRequest()) { try { $rsp = new \Nyholm\Psr7\Response(); $rsp->getBody()->write("hello world"); $metrics->add('test', 1); $worker->respond($rsp); } catch (\Throwable $e) { $worker->getWorker()->error((string)$e); } }