Skip to content

Commit

Permalink
Suppress warning
Browse files Browse the repository at this point in the history
  • Loading branch information
cedricziel authored Oct 19, 2023
1 parent 49f2240 commit d2fe340
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Instrumentation/Symfony/src/SymfonyInstrumentation.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ public static function register(): void
$routeName = $request->attributes->get('_route', '');

if ('' !== $routeName) {
/** @psalm-suppress ArgumentTypeCoercion */
$span
->updateName(sprintf('%s %s', $request->getMethod(), $routeName))
->setAttribute(TraceAttributes::HTTP_ROUTE, $routeName);
Expand Down

0 comments on commit d2fe340

Please sign in to comment.