jcchavezs / zipkin-reporter-kafka
Zipkin Reporter over Kafka transport
0.1.0
2018-05-24 09:19 UTC
Requires
- php: ^5.6||^7.0
- jcchavezs/zipkin: ~1.2.2
- nmred/kafka-php: v0.2.0.8
Requires (Dev)
- phpunit/phpunit: ~5.7.19
- squizlabs/php_codesniffer: 3.*
This package is auto-updated.
Last update: 2024-12-04 21:13:35 UTC
README
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.
Install
composer require jcchavezs/zipkin-reporter-kafka
Usage
<?php $config = [ 'broker_list' => 'kafkahost:9092', ]; $reporter = new ZipkinReporterKafka\Reporter(null, $config); TracingBuilder::create()->havingReporter($reporter)->build();