minors / phpkin-guzzle-logger
Installs: 1 537
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: ^7.0
- guzzlehttp/guzzle: ~6.0
- whitemerry/phpkin: ^1.2
Requires (Dev)
- phpunit/phpunit: ^6.2
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, );