PHP code example of chocofamilyme / pathcorrelation
1. Go to this page and download the library: Download chocofamilyme/pathcorrelation 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/ */
chocofamilyme / pathcorrelation example snippets
$params = CorrelationId::getInstance()->getCurrentQueryParams();
$url = "https://example.com?correlation_id=$params['correlation_id']&span_id=$params['span_id']";