diff --git a/src/Hooks/Illuminate/Contracts/Queue/Queue.php b/src/Hooks/Illuminate/Contracts/Queue/Queue.php index 403cab6..48dcf23 100644 --- a/src/Hooks/Illuminate/Contracts/Queue/Queue.php +++ b/src/Hooks/Illuminate/Contracts/Queue/Queue.php @@ -94,7 +94,7 @@ protected function hookLater(): bool ->spanBuilder(vsprintf('%s %s', [ TraceAttributeValues::MESSAGING_OPERATION_TYPE_CREATE, /** @phan-suppress-next-line PhanUndeclaredMethod */ - method_exists($queue, 'getQueue') ? $queue->getQueue($params[2] ?? null) : $queue->getConnectionName(), + method_exists($queue, 'getQueue') ? $queue->getQueue($params[3] ?? null) : $queue->getConnectionName(), ])) ->setSpanKind(SpanKind::KIND_PRODUCER) ->setAttributes($attributes)