An open API service indexing awesome lists of open source software.

https://github.com/code-tool/jaeger-client-php

OpenTracing API for PHP
https://github.com/code-tool/jaeger-client-php

distributed-tracing jaeger opentracing php

Last synced: 8 months ago
JSON representation

OpenTracing API for PHP

Awesome Lists containing this project

README

          

# PHP OpenTracing API using Jaeger

## Installation

```bash
composer require code-tool/jaeger-client-php
```

## Getting Started

It is strictly advised to use any form of DI container (e.g. [Symfony Bundle](https://github.com/code-tool/jaeger-client-symfony-bridge)).

```php
start('Parent Operation Name', [new StringTag('test.tag', 'Hello world in parent')]);
$childSpan = $tracer->start('Child Operation Name', [new StringTag('test.tag', 'Hello world in child')]);
$tracer->finish($childSpan);
$tracer->finish($span);
```