PHP code example of auxmoney / opentracing-bundle-monolog
1. Go to this page and download the library: Download auxmoney/opentracing-bundle-monolog 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/ */
auxmoney / opentracing-bundle-monolog example snippets
# Symfony 3: AppKernel.php
$bundles[] = new Auxmoney\OpentracingMonologBundle\OpentracingMonologBundle();
# Symfony 4+: bundles.php
Auxmoney\OpentracingMonologBundle\OpentracingMonologBundle::class => ['all' => true],
[2020-01-10 11:38:03] php.INFO: .... {"exception":"[object] (ErrorException(code: 0) ...."} {"opentracing-context":"{\"UBER-TRACE-ID\":\"15e880402e1a194715e880402e19a3e0:15e880402e19a3e0:0:1\"}"}