2017 © Pedro Peláez
 

library jaeger-php

php client for jaeger

image

jukylin/jaeger-php

php client for jaeger

  • Wednesday, June 20, 2018
  • by jukylin
  • Repository
  • 4 Watchers
  • 28 Stars
  • 1,532 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 15 Forks
  • 3 Open issues
  • 30 Versions
  • 108 % Grown

The README.md

Build Status Minimum PHP Version License Coverage Status, (*1)

jaeger-php

Install

Install via composer., (*2)

composer config minimum-stability dev
composer require jukylin/jaeger-php

Init Jaeger-php

$config = Config::getInstance();
$tracer = $config->initTracer('example', '0.0.0.0:6831');

128bit

$config->gen128bit();

Extract from Superglobals

$spanContext = $tracer->extract(Formats\TEXT_MAP, $_SERVER);

Start Span

$serverSpan = $tracer->startSpan('example HTTP', ['child_of' => $spanContext]);

Distributed context propagation

$serverSpan->addBaggageItem("version", "2.0.0");

Inject into Superglobals

$clientTrace->inject($clientSpan1->spanContext, Formats\TEXT_MAP, $_SERVER);

Tags and Log

// tags are searchable in Jaeger UI
$span->setTag('http.status', '200');

// log record
$span->log(['error' => 'HTTP request timeout']);

Close Tracer

$config->setDisabled(true);

Zipkin B3 Propagation

no support for Distributed context propagation, (*3)

$config::$propagator = \Jaeger\Constants\PROPAGATOR_ZIPKIN;

Finish span and flush Tracer

$span->finish();
$config->flush();

More example

Features

  • Transports, (*4)

    • via Thrift over UDP
  • Sampling, (*5)

    • ConstSampler
    • ProbabilisticSampler

Reference

OpenTracing, (*6)

Jaeger, (*7)

The Versions

20/06 2018

dev-master

9999999-dev

php client for jaeger

  Sources   Download

MIT

The Requires

 

by Avatar jukylin

trace jaeger opentracing

20/06 2018

v2.0.2-beta

2.0.2.0-beta

php client for jaeger

  Sources   Download

MIT

The Requires

 

by Avatar jukylin

trace jaeger opentracing

19/06 2018

dev-fix_traceid_len

dev-fix_traceid_len

php client for jaeger

  Sources   Download

MIT

The Requires

 

by Avatar jukylin

trace jaeger opentracing

19/03 2018

dev-require

dev-require

php client for jaeger

  Sources   Download

MIT

The Requires

 

by Avatar jukylin

trace jaeger opentracing

19/03 2018

v2.0.1-beta

2.0.1.0-beta

php client for jaeger

  Sources   Download

MIT

The Requires

 

by Avatar jukylin

trace jaeger opentracing

13/01 2018

dev-refactor

dev-refactor

php client for jaeger

  Sources   Download

MIT

The Requires

 

by Avatar jukylin

trace jaeger opentracing

13/01 2018

v2.0.0-beta

2.0.0.0-beta

php client for jaeger

  Sources   Download

MIT

The Requires

 

by Avatar jukylin

trace jaeger opentracing

31/10 2017

dev-add_json_format

dev-add_json_format

php client for jaeger

  Sources   Download

MIT

The Requires

 

by Avatar jukylin

trace jaeger opentracing

31/10 2017

dev-semantic_conventions

dev-semantic_conventions

php client for jaeger

  Sources   Download

MIT

The Requires

 

by Avatar jukylin

trace jaeger opentracing

19/10 2017

1.0.3

1.0.3.0

php client for jaeger

  Sources   Download

MIT

The Requires

 

by Avatar jukylin
by qiling

trace jaeger opentracing

19/10 2017

dev-fix_add_tags

dev-fix_add_tags

php client for jaeger

  Sources   Download

MIT

The Requires

 

by Avatar jukylin

trace jaeger opentracing

13/10 2017

1.0.2

1.0.2.0

php client for jaeger

  Sources   Download

MIT

The Requires

 

by Avatar jukylin
by qiling

trace jaeger opentracing

13/10 2017

dev-add_hprose_example

dev-add_hprose_example

php client for jaeger

  Sources   Download

MIT

The Requires

 

by Avatar jukylin

trace jaeger opentracing

12/10 2017

1.0.1

1.0.1.0

php client for jaeger

  Sources   Download

MIT

The Requires

 

by Avatar jukylin
by qiling

trace jaeger opentracing

03/10 2017

dev-gen128bit

dev-gen128bit

php client for jaeger

  Sources   Download

MIT

The Requires

 

by Avatar jukylin

trace jaeger opentracing

29/09 2017

dev-get_env_jaeger_tags

dev-get_env_jaeger_tags

php client for jaeger

  Sources   Download

MIT

The Requires

 

by Avatar jukylin

trace jaeger opentracing

19/09 2017

1.0.0

1.0.0.0

php client for jaeger

  Sources   Download

MIT

The Requires

 

by Avatar jukylin
by qiling

trace jaeger opentracing

31/08 2017

dev-fix-use-tagsclass

dev-fix-use-tagsclass

php client for jaeger

  Sources   Download

MIT

The Requires

 

by Avatar jukylin

trace jaeger opentracing

31/08 2017

2.0.1

2.0.1.0

php client for jaeger

  Sources   Download

MIT

The Requires

 

by Avatar jukylin

trace jaeger opentracing

27/08 2017

dev-feature/creating_example

dev-feature/creating_example

php client for jaeger

  Sources   Download

MIT

The Requires

 

by Avatar jukylin

trace jaeger opentracing

24/08 2017

dev-feature/mul_jaeger

dev-feature/mul_jaeger

php client for jaeger

  Sources   Download

MIT

The Requires

 

by Avatar jukylin

trace jaeger opentracing

22/08 2017

dev-add-license-1

dev-add-license-1

php client for jaeger

  Sources   Download

MIT

The Requires

 

by Avatar jukylin

trace jaeger opentracing

22/08 2017

dev-creating_config

dev-creating_config

php client for jaeger

  Sources   Download

MIT

The Requires

 

by Avatar jukylin

trace jaeger opentracing

19/08 2017

2.0.0

2.0.0.0

php client for jaeger

  Sources   Download

MIT

The Requires

 

by Avatar jukylin

trace jaeger opentracing

19/08 2017

dev-add_reporter

dev-add_reporter

php client for jaeger

  Sources   Download

MIT

The Requires

 

by Avatar jukylin

trace jaeger opentracing

12/08 2017

1.0.9

1.0.9.0

php client for jaeger

  Sources   Download

MIT

The Requires

 

by Avatar jukylin

trace jaeger opentracing

05/08 2017

1.0.8

1.0.8.0

php client for jaeger

  Sources   Download

MIT

The Requires

 

by Avatar jukylin

trace jaeger opentracing

03/08 2017

1.0.7

1.0.7.0

php client for jaeger

  Sources   Download

MIT

The Requires

 

by Avatar jukylin

trace jaeger opentracing

03/08 2017

1.0.5

1.0.5.0

php client for jaeger

  Sources   Download

MIT

The Requires

 

by Avatar jukylin

trace jaeger opentracing

03/08 2017

1.0.4

1.0.4.0

php client for jaeger

  Sources   Download

MIT

The Requires

 

by Avatar jukylin

trace jaeger opentracing