Total Complexity | 5 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class DistributedTracing implements Extension |
||
8 | { |
||
9 | private string $traceParent; |
||
10 | |||
11 | private ?string $traceState; |
||
12 | |||
13 | public function __construct(string $traceParent, ?string $traceState = null) |
||
17 | } |
||
18 | |||
19 | public function toArray() : array |
||
20 | { |
||
21 | return [ |
||
22 | 'DistributedTracingExtension' => [ |
||
23 | 'traceparent' => $this->traceParent, |
||
24 | 'tracestate' => $this->traceState, |
||
25 | ], |
||
26 | ]; |
||
27 | } |
||
28 | |||
29 | public function getName() : string |
||
30 | { |
||
31 | return 'DistributedTracingExtension'; |
||
32 | } |
||
33 | |||
34 | public function getTraceParent() : string |
||
35 | { |
||
36 | return $this->traceParent; |
||
37 | } |
||
38 | |||
39 | public function getTraceState() : ?string |
||
42 | } |
||
43 | } |
||
44 |