2017 © Pedro Peláez
 

library php-zipkin

Zipkin's PHP tracer library

image

takatost/php-zipkin

Zipkin's PHP tracer library

  • Wednesday, July 26, 2017
  • by takatost
  • Repository
  • 1 Watchers
  • 1 Stars
  • 67 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 10 Forks
  • 0 Open issues
  • 20 Versions
  • 0 % Grown

The README.md

PHP-Zipkin

This is an unofficial PHP library for OpenZipkin., (*1)

Status

Incomplete, only has one transport with zero integrations. This library contains a very minimal implementation for just sending spans to zipkin., (*2)

Getting started

The recommended way to install PHP-Zipkin is through Composer, (*3)

composer require drefined/php-zipkin

Example usage

<?php
$client   = new \GuzzleHttp\Client();
$logger   = new \Drefined\Zipkin\Transport\HTTPLogger($client);
$tracer   = new \Drefined\Zipkin\Tracer($logger, 1.0, true);
$endpoint = new \Drefined\Zipkin\Core\Endpoint('127.0.0.1', 8080, 'test-trace');
$trace    = new \Drefined\Zipkin\Core\Trace($tracer, $endpoint);

$trace->createNewSpan('test-server-trace');

$trace->record(
    [Annotation::generateServerRecv()],
    [BinaryAnnotation::generateString('server.request.uri', '/server')]
);

$trace->record(
    [Annotation::generateServerSend()],
    [BinaryAnnotation::generateString('server.response', 200)]
);

Laravel integration (simple)

Add middleware and service provider in proper locations., (*4)

<?php // laravel-project/app/Http/Kernel.php

namespace App\Http;

use ...
use Drefined\Zipkin\Instrumentation\Laravel\Middleware\EnableZipkinTracing;

class Kernel extends HttpKernel
{
    ...
    protected $middleware = [
        ...
        EnableZipkinTracing::class,
    ];
    ...
}
<?php // laravel-project/config/app.php

use Drefined\Zipkin\Instrumentation\Laravel\Providers\ZipkinTracingServiceProvider;

return [
    ...
    'providers' => [
        ...
        ZipkinTracingServiceProvider::class,
    ],
    ...
];

Todo

  • Add Complete Laravel integration (currently supports a simple implementation without app environment configuration)
  • Add Symfony integration
  • Add Redis wrapper
  • Add HTTP wrapper
  • Add PDO wrapper
  • Add Scribe transport
  • Add Kafka transport

Inspired By

Reference

Generating PHP thrift classes

  • ls thrift/ | xargs -I {} thrift --gen php thrift/{}

License

license, (*5)

Contributors

  • David Phruksukarn

The Versions

26/07 2017

dev-master

9999999-dev https://github.com/takatost/php-zipkin

Zipkin's PHP tracer library

  Sources   Download

MIT

The Requires

 

The Development Requires

by John Wang
by David Phruksukarn

php tracer zipkin tracing

26/07 2017

1.1.8

1.1.8.0 https://github.com/takatost/php-zipkin

Zipkin's PHP tracer library

  Sources   Download

MIT

The Requires

 

The Development Requires

by John Wang
by David Phruksukarn

php tracer zipkin tracing

12/05 2017

1.1.7

1.1.7.0 https://github.com/takatost/php-zipkin

Zipkin's PHP tracer library

  Sources   Download

MIT

The Requires

 

The Development Requires

by John Wang
by David Phruksukarn

php tracer zipkin tracing

17/04 2017

1.1.6

1.1.6.0 https://github.com/takatost/php-zipkin

Zipkin's PHP tracer library

  Sources   Download

MIT

The Requires

 

The Development Requires

by John Wang
by David Phruksukarn

php tracer zipkin tracing

14/03 2017

1.1.5

1.1.5.0 https://github.com/takatost/php-zipkin

Zipkin's PHP tracer library

  Sources   Download

MIT

The Requires

 

The Development Requires

by John Wang
by David Phruksukarn

php tracer zipkin tracing

02/03 2017

1.1.4

1.1.4.0 https://github.com/takatost/php-zipkin

Zipkin's PHP tracer library

  Sources   Download

MIT

The Requires

 

The Development Requires

by John Wang
by David Phruksukarn

php tracer zipkin tracing

02/03 2017

1.1.3

1.1.3.0 https://github.com/takatost/php-zipkin

Zipkin's PHP tracer library

  Sources   Download

MIT

The Requires

 

The Development Requires

by John Wang
by David Phruksukarn

php tracer zipkin tracing

02/03 2017

1.1.2

1.1.2.0 https://github.com/takatost/php-zipkin

Zipkin's PHP tracer library

  Sources   Download

MIT

The Requires

 

The Development Requires

by John Wang
by David Phruksukarn

php tracer zipkin tracing

02/03 2017

1.1.1

1.1.1.0 https://github.com/takatost/php-zipkin

Zipkin's PHP tracer library

  Sources   Download

MIT

The Requires

 

The Development Requires

by John Wang
by David Phruksukarn

php tracer zipkin tracing

27/02 2017

1.1.0

1.1.0.0 https://github.com/takatost/php-zipkin

Zipkin's PHP tracer library

  Sources   Download

MIT

The Requires

 

The Development Requires

by John Wang
by David Phruksukarn

php tracer zipkin tracing

27/02 2017

1.0.9

1.0.9.0 https://github.com/takatost/php-zipkin

Zipkin's PHP tracer library

  Sources   Download

MIT

The Requires

 

The Development Requires

by John Wang
by David Phruksukarn

php tracer zipkin tracing

27/02 2017

1.0.8

1.0.8.0 https://github.com/takatost/php-zipkin

Zipkin's PHP tracer library

  Sources   Download

MIT

The Requires

 

The Development Requires

by John Wang
by David Phruksukarn

php tracer zipkin tracing

27/02 2017

1.0.7

1.0.7.0 https://github.com/takatost/php-zipkin

Zipkin's PHP tracer library

  Sources   Download

MIT

The Requires

 

The Development Requires

by John Wang
by David Phruksukarn

php tracer zipkin tracing

26/02 2017

1.0.6

1.0.6.0 https://github.com/takatost/php-zipkin

Zipkin's PHP tracer library

  Sources   Download

MIT

The Requires

 

The Development Requires

by John Wang
by David Phruksukarn

php tracer zipkin tracing

26/02 2017

1.0.5

1.0.5.0 https://github.com/takatost/php-zipkin

Zipkin's PHP tracer library

  Sources   Download

MIT

The Requires

 

The Development Requires

by John Wang
by David Phruksukarn

php tracer zipkin tracing

26/02 2017

1.0.4

1.0.4.0 https://github.com/takatost/php-zipkin

Zipkin's PHP tracer library

  Sources   Download

MIT

The Requires

 

The Development Requires

by John Wang
by David Phruksukarn

php tracer zipkin tracing

26/02 2017

1.0.3

1.0.3.0 https://github.com/takatost/php-zipkin

Zipkin's PHP tracer library

  Sources   Download

MIT

The Requires

 

The Development Requires

by John Wang
by David Phruksukarn

php tracer zipkin tracing

24/02 2017

1.0.2

1.0.2.0 https://github.com/takatost/php-zipkin

Zipkin's PHP tracer library

  Sources   Download

MIT

The Requires

 

The Development Requires

by John Wang
by David Phruksukarn

php tracer zipkin tracing

24/02 2017

1.0.1

1.0.1.0 https://github.com/takatost/php-zipkin

Zipkin's PHP tracer library

  Sources   Download

MIT

The Requires

 

The Development Requires

by John Wang
by David Phruksukarn

php tracer zipkin tracing

24/02 2017

1.0.0

1.0.0.0 https://github.com/takatost/php-zipkin

Zipkin's PHP tracer library

  Sources   Download

MIT

The Requires

 

The Development Requires

by John Wang
by David Phruksukarn

php tracer zipkin tracing