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 4a41ec4 + 2770413 commit 23806a0Copy full SHA for 23806a0
app/code/Magento/GraphQl/Model/Query/Logger/NewRelic.php
@@ -41,16 +41,15 @@ public function __construct(
41
*/
42
public function execute(array $queryDetails)
43
{
44
+ $transactionName = $queryDetails[LoggerInterface::OPERATION_NAMES] ?? '';
45
+ $this->newRelicWrapper->setTransactionName('GraphQL-' . $transactionName);
46
+
47
if (!$this->config->isNewRelicEnabled()) {
48
return;
49
}
50
51
foreach ($queryDetails as $key => $value) {
52
$this->newRelicWrapper->addCustomParameter($key, $value);
53
-
- $transactionName = $queryDetails[LoggerInterface::OPERATION_NAMES] ?: '';
54
- $this->newRelicWrapper->setTransactionName('GraphQL-' . $transactionName);
55
56
0 commit comments