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); 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']]);