We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 42b9788 + e004b9e commit f195703Copy full SHA for f195703
src/Listeners/QueueJobSubscriber.php
@@ -70,7 +70,7 @@ protected function startQueueJobSpan(JobProcessing $event)
70
/** @var mixed $jobInstance */
71
$jobInstance = unserialize(Arr::get($job->payload(), 'data.command'));
72
73
- if (in_array(ShouldBeTraced::class, class_implements($jobInstance))) {
+ if ($jobInstance && in_array(ShouldBeTraced::class, class_implements($jobInstance))) {
74
$jobInput = $this->retrieveQueueJobInput($jobInstance);
75
76
/** @var Span $span */
0 commit comments