Skip to content

Commit e8fa86c

Browse files
authored
Merge pull request #11 from rbiya/fix-queue-prefix
Fix prefix does not work on handling queue transaction
2 parents 4713ad0 + 72bc218 commit e8fa86c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/NewRelicTransactionHandler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,9 @@ public function queueHandling(): void
9999
app(NewRelicTransaction::class)
100100
->start(
101101
config('new-relic.queue.prefix') .
102-
(method_exists($event->job, 'resolveName'))
102+
((method_exists($event->job, 'resolveName'))
103103
? $event->job->resolveName()
104-
: $event->job->getName()
104+
: $event->job->getName())
105105
)->addParameter('queue', $event->job->getQueue())
106106
->addParameter('connection', $event->connectionName);
107107
});

0 commit comments

Comments
 (0)