| Total Complexity | 2 |
| Total Lines | 19 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | final class NullTracer extends AbstractTracer |
||
| 13 | { |
||
| 14 | 151 | public function trace( |
|
| 15 | string $name, |
||
| 16 | callable $callback, |
||
| 17 | array $attributes = [], |
||
| 18 | bool $scoped = false, |
||
| 19 | ?TraceKind $traceKind = null, |
||
| 20 | ?int $startTime = null |
||
| 21 | ): mixed { |
||
| 22 | 151 | $span = new Span($name); |
|
| 23 | 151 | $span->setAttributes($attributes); |
|
| 24 | |||
| 25 | 151 | return $this->runScope($span, $callback); |
|
| 26 | } |
||
| 27 | |||
| 28 | 96 | public function getContext(): array |
|
| 31 | } |
||
| 32 | } |
||
| 33 |