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.
1 parent 381f5d1 commit 493fdafCopy full SHA for 493fdaf
app/code/Magento/GraphQl/Model/Query/Logger/NewRelic.php
@@ -41,12 +41,16 @@ 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
}
54
- $transactionName = $queryDetails[LoggerInterface::OPERATION_NAMES] ?: '';
-
- $this->newRelicWrapper->setTransactionName('GraphQL-' . $transactionName);
55
56
0 commit comments