Skip to content

Commit 23806a0

Browse files
Merge remote-tracking branch '36436/patch-1' into comm_voted
2 parents 4a41ec4 + 2770413 commit 23806a0

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

app/code/Magento/GraphQl/Model/Query/Logger/NewRelic.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,15 @@ public function __construct(
4141
*/
4242
public function execute(array $queryDetails)
4343
{
44+
$transactionName = $queryDetails[LoggerInterface::OPERATION_NAMES] ?? '';
45+
$this->newRelicWrapper->setTransactionName('GraphQL-' . $transactionName);
46+
4447
if (!$this->config->isNewRelicEnabled()) {
4548
return;
4649
}
4750

4851
foreach ($queryDetails as $key => $value) {
4952
$this->newRelicWrapper->addCustomParameter($key, $value);
5053
}
51-
52-
$transactionName = $queryDetails[LoggerInterface::OPERATION_NAMES] ?: '';
53-
54-
$this->newRelicWrapper->setTransactionName('GraphQL-' . $transactionName);
5554
}
5655
}

0 commit comments

Comments
 (0)