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
- Host: GitHub
- URL: https://github.com/code-tool/jaeger-client-php
- Owner: code-tool
- License: mit
- Created: 2017-11-20T13:31:17.000Z (about 8 years ago)
- Default Branch: 3.0.x
- Last Pushed: 2023-08-09T09:19:02.000Z (over 2 years ago)
- Last Synced: 2025-04-14T00:39:50.776Z (9 months ago)
- Topics: distributed-tracing, jaeger, opentracing, php
- Language: PHP
- Homepage:
- Size: 318 KB
- Stars: 34
- Watchers: 5
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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);
```