From 850c85d294e86a433f460643154e33eb9e7d13f4 Mon Sep 17 00:00:00 2001 From: indykoning <15870933+indykoning@users.noreply.github.com> Date: Wed, 19 Nov 2025 15:45:18 +0100 Subject: [PATCH 1/2] Fixed undefined message properties --- Plugin/Profiling/QueuePlugin.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Plugin/Profiling/QueuePlugin.php b/Plugin/Profiling/QueuePlugin.php index 6b1b7ea..961fe95 100644 --- a/Plugin/Profiling/QueuePlugin.php +++ b/Plugin/Profiling/QueuePlugin.php @@ -50,9 +50,9 @@ public function afterDequeue(QueueInterface $queue, ?EnvelopeInterface $envelope ->setData([ 'messaging.message.id' => $properties['message_id'], 'messaging.destination.name' => $properties['topic_name'], - 'messaging.queue.name' => $properties['queue_name'], + 'messaging.queue.name' => $properties['queue_name'] ?? null, 'messaging.message.body.size' => strlen($envelope->getBody()), - 'messaging.message.retry.count' => $properties['retries'], + 'messaging.message.retry.count' => $properties['retries'] ?? null, ]); \Sentry\SentrySdk::getCurrentHub()->setSpan($this->transactions[$properties['message_id']]); From 077d53ac9eefcd9dfc7bd2c7f715f950bc4d6e56 Mon Sep 17 00:00:00 2001 From: indykoning <15870933+indykoning@users.noreply.github.com> Date: Thu, 20 Nov 2025 09:31:35 +0100 Subject: [PATCH 2/2] Force identifier to string --- Plugin/Profiling/Cache.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plugin/Profiling/Cache.php b/Plugin/Profiling/Cache.php index 077c735..68e111f 100644 --- a/Plugin/Profiling/Cache.php +++ b/Plugin/Profiling/Cache.php @@ -31,7 +31,7 @@ public function load($identifier) ->setData([ 'cache.key' => $identifier, ]) - ->setDescription($identifier) + ->setDescription((string) $identifier) ->setOrigin('auto.cache'); $span = $parentSpan->startChild($context); SentrySdk::getCurrentHub()->setSpan($span);