Skip to content

Commit

Permalink
fix: post hook invalid when symfony messenger sender throws exception
Browse files Browse the repository at this point in the history
I still need to validate that this solves the problem but looking at the code this is the only thing that makes sense to me to solve it.

```
Symfony\Component\Messenger\Bridge\Amqp\Transport\AmqpTransport::send(): OpenTelemetry: post hook invalid signature, class=Symfony\Component\Messenger\Bridge\Amqp\Transport\AmqpTransport function=send
```
  • Loading branch information
nesl247 committed May 23, 2024
1 parent 6cbf493 commit 3aad38c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public static function register(): void
post: static function (
SenderInterface $sender,
array $params,
Envelope $result,
?Envelope $result,
?\Throwable $exception
): void {
$scope = Context::storage()->scope();
Expand Down

0 comments on commit 3aad38c

Please sign in to comment.