PHP code example of suora / apm-wrapper

1. Go to this page and download the library: Download suora/apm-wrapper library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

suora / apm-wrapper example snippets


$profiler = new \Suora\ApmWrapper\Profiler\AutoTideways(
    'your-token',
    'workerpool'
);

foreach ($jobs as $job) {
    $profiler->startTransaction($job->getName());
    $profiler->addParameter('jobId', $job->getId());

    $job->run();

    $profiler->endTransaction();
}