Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cappuc committed Feb 19, 2024
1 parent b8ff3d4 commit 1efb043
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Instrumentation/QueueInstrumentation.php
Expand Up @@ -63,7 +63,7 @@ protected function registerQueueInterceptor(QueueManager $queue): void
}

$jobName = Arr::get($payload, 'displayName', 'unknown');
$queueName = Str::after($queue, 'queues:');
$queueName = Str::after($queue ?? 'default', 'queues:');

$span = Tracer::newSpan(sprintf('%s enqueue', $jobName))
->setSpanKind(SpanKind::KIND_PRODUCER)
Expand Down

0 comments on commit 1efb043

Please sign in to comment.