Zipkin Reporter over Kafka transport.
This library uses nmred/kafka-php
under version 0.2.0.8
. This library
is wide used but has some limitations in terms of configuration as it uses
a global singleton. In the other hand, this library does not require to install
any PHP extension which makes its usage very convenient.
composer require jcchavezs/zipkin-reporter-kafka
<?php
$config = [
'broker_list' => 'kafkahost:9092',
];
$reporter = new ZipkinReporterKafka\Reporter(null, $config);
TracingBuilder::create()->havingReporter($reporter)->build();