Skip to content

Commit

Permalink
Fix psalm issue
Browse files Browse the repository at this point in the history
  • Loading branch information
agoallikmaa committed Nov 22, 2023
1 parent 368c631 commit 40ba4a2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Instrumentation/Yii/src/YiiInstrumentation.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ public static function register(): void

$span = Span::fromContext($scope->context());
$route = YiiInstrumentation::normalizeRouteName(get_class($controller), $action->actionMethod);
/** @psalm-suppress ArgumentTypeCoercion */
$span->updateName($route);
$span->setAttribute(TraceAttributes::HTTP_ROUTE, $route);
},
Expand Down

0 comments on commit 40ba4a2

Please sign in to comment.