File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change 1
-
2
1
# PHP OpenTracing API using Jaeger
3
2
4
-
5
3
## Installation
6
4
7
- ```
5
+ ``` bash
8
6
composer require code-tool/jaeger-client-php
9
7
```
10
8
11
9
## Getting Started
12
10
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
15
14
<?php
16
15
16
+ use Jaeger\Tag\StringTag;
17
+ use Jaeger\Tracer\TracerInterface;
18
+
19
+ /** @var TracerInterface $tracer */
20
+
17
21
$span = $tracer->start('Parent Operation Name', [new StringTag('test.tag', 'Hello world in parent')]);
18
22
$childSpan = $tracer->start('Child Operation Name', [new StringTag('test.tag', 'Hello world in child')]);
19
23
$tracer->finish($childSpan);
You can’t perform that action at this time.
0 commit comments