| Total Complexity | 2 |
| Total Lines | 19 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | final class NullTracer extends AbstractTracer |
||
| 13 | { |
||
| 14 | 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 | $span = new Span($name); |
||
| 23 | $span->setAttributes($attributes); |
||
| 24 | |||
| 25 | return $this->runScope($span, $callback); |
||
| 26 | } |
||
| 27 | |||
| 28 | public function getContext(): array |
||
| 31 | } |
||
| 32 | } |
||
| 33 |