PHP code example of pccomponentes / apm-mongodb
1. Go to this page and download the library: Download pccomponentes/apm-mongodb 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/ */
pccomponentes / apm-mongodb example snippets
declare(strict_types=1);
use function MongoDB\Driver\Monitoring\addSubscriber;
$commandSubscriber = new PcComponentes\ElasticAPM\MongoDB\Driver\Monitoring\CommandSubscriber(
$apmTracer, /** \ZoiloMora\ElasticAPM\ElasticApmTracer instance. */
);
addSubscriber($commandSubscriber);