jcchavezs/zipkin-reporter-kafka

Zipkin Reporter over Kafka transport

0.1.0 2018-05-24 09:19 UTC

This package is auto-updated.

Last update: 2024-12-04 21:13:35 UTC


README

Build Status Latest Stable Version Total Downloads License

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();