| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 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 | } |
||
| 33 |