damour / jaeger-client-php

Jaeger Bindings for PHP OpenTracing API

Home Page:https://uber.github.io/jaeger/

Repository from Github https://github.comdamour/jaeger-client-phpRepository from Github https://github.comdamour/jaeger-client-php

Build Status PHP version

Jaegar Bindings for PHP OpenTracing API

This is a client-side library that can be used to instrument PHP apps for distributed trace collection, and to send those traces to Jaeger. See the OpenTracing PHP API for additional detail.

Contributing and Developing

Please see CONTRIBUTING.md.

Installation

{
  "require": {
    "jonahgeorge/jaeger-client-php": "dev-master"
  }
}

Getting Started

<?php

require_once 'vendor/autoload.php';

use Jaeger\Config;
use OpenTracing\GlobalTracer;

$config = new Config(
    [
        'sampler' => ['type' => 'const', 'param' => true],
        'logging' => true,
    ],
    'your-app-name'
);
$config->initializeTracer();

$tracer = GlobalTracer::get();

$span = $tracer->startSpan('TestSpan', []);
$span->finish();

$tracer->flush();

Roadmap

License

MIT License.

About

Jaeger Bindings for PHP OpenTracing API

https://uber.github.io/jaeger/

License:MIT License


Languages

Language:PHP 99.3%Language:Shell 0.7%