PHP code example of micro-module / observability-bundle
1. Go to this page and download the library: Download micro-module/observability-bundle 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/ */
micro-module / observability-bundle example snippets
// Example: Doctrine tracing only loads if BOTH conditions are true
if ($config['doctrine']['enabled'] && class_exists(\Doctrine\DBAL\Driver\Middleware::class)) {
$container->import('../config/doctrine.php');
}