File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1-
21# PHP OpenTracing API using Jaeger
32
4-
53## Installation
64
7- ```
5+ ``` bash
86composer require code-tool/jaeger-client-php
97```
108
119## Getting Started
1210
13- It is strictly advised to use any form of DI container (e.g. [ Symfony] ( https://github.com/code-tool/jaeger-client-symfony-bridge ) ).
14- ``` $xslt
11+ It is strictly advised to use any form of DI container (e.g. [ Symfony Bundle] ( https://github.com/code-tool/jaeger-client-symfony-bridge ) ).
12+
13+ ``` php
1514<?php
1615
16+ use Jaeger\Tag\StringTag;
17+ use Jaeger\Tracer\TracerInterface;
18+
19+ /** @var TracerInterface $tracer */
20+
1721$span = $tracer->start('Parent Operation Name', [new StringTag('test.tag', 'Hello world in parent')]);
1822$childSpan = $tracer->start('Child Operation Name', [new StringTag('test.tag', 'Hello world in child')]);
1923$tracer->finish($childSpan);
You can’t perform that action at this time.
0 commit comments