Skip to content

Commit

Permalink
Fix bug FailToConsume getResult function (#701)
Browse files Browse the repository at this point in the history
* Fix bug FailToConsume getResult function

* Optimized

* Optimized

---------

Co-authored-by: ljx <[email protected]>
Co-authored-by: Deeka Wong <[email protected]>
  • Loading branch information
3 people authored Aug 16, 2024
1 parent 1923fc8 commit 8936f27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Tracing/Listener/TracingAmqpListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ protected function finishTransaction(AfterConsume|FailToConsume $event): void
'messaging.amqp.message.exchange' => $message->getExchange(),
'messaging.amqp.message.queue' => $message->getQueue(),
'messaging.amqp.message.pool_name' => $message->getPoolName(),
'messaging.amqp.message.result' => $event->getResult(),
'messaging.amqp.message.result' => $event instanceof AfterConsume ? $event->getResult()->value : 'fail',
];
$tags = [];

Expand Down

0 comments on commit 8936f27

Please sign in to comment.