Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | public function handle(CommandFinished $event): void |
||
16 | { |
||
17 | $span = Span::getCurrent(); |
||
18 | $scope = $span->activate(); |
||
19 | |||
20 | $callableConfig = Config::get('jaravel.console.tags', fn () => [ |
||
21 | 'type' => 'console', |
||
22 | ]); |
||
23 | |||
24 | SpanTagHelper::setTags( |
||
25 | $span, |
||
26 | Caller::call($callableConfig, [$event->command, $event->exitCode, $event->input, $event->output]) |
||
27 | ); |
||
28 | |||
29 | $span->end(); |
||
30 | $scope->detach(); |
||
31 | } |
||
33 |