PHP code example of jcchavezs / zipkin-reporter-kafka
1. Go to this page and download the library: Download jcchavezs/zipkin-reporter-kafka 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/ */
jcchavezs / zipkin-reporter-kafka example snippets
$config = [
'broker_list' => 'kafkahost:9092',
];
$reporter = new ZipkinReporterKafka\Reporter(null, $config);
TracingBuilder::create()->havingReporter($reporter)->build();