minors/phpkin-guzzle-logger

v1.0 2017-06-04 02:44 UTC

This package is not auto-updated.

Last update: 2020-10-30 04:53:38 UTC


README

Installation

Install dependency via composer.

composer require minors/phpkin-guzzle-logger

Attach the logger to your tracer instance.

// ...
use Minors\phpkin\GuzzleHttpLogger;
// ...

$logger = new GuzzleHttpLogger([
    'host' => 'http://127.0.0.1:9144', // your zipkin base URI
    'endpoint' => '/api/v1/spans', // optional
    'muteErrors' => true, // optional
    'contextOptions' => [], // optional
]);

$tracer = new Tracer(
    $name,
    $endpoint,
    $logger,
);