graycore / new-relic-graph-ql
Create custom events for every graphQl query and mutation in magento 2
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 0
Open Issues: 0
Type:magento2-module
Requires
- jomashop/module-new-relic-monitoring-for-gql: ^1.1
- magento/framework: ^102.0 || ^103.0
- magento/module-new-relic-reporting: 100.4.1
Requires (Dev)
- magento/magento-coding-standard: ^5.0
- phpstan/phpstan: ^1.2
- phpunit/phpunit: ^8.2
- squizlabs/php_codesniffer: ^3.4
Replaces
This package is auto-updated.
Last update: 2023-06-29 01:56:53 UTC
README
Purpose
This module intends to create custom event data in new relic for every graphQl request made in Magento 2. It will create one event for each root node in the graphQl request.
Details
This module depends on Magento 2 - Automatic GraphQL transaction naming for New Relic from joma-webdevs to extract query details, as a side effect it will add to the APM transaction more GraphQl request data
The event name is GraphQlTransaction and its data has the following structure:
{ "operation": "Mutation|Query", "transactionName": "/GraphQl/Controller/GraphQl\\Query\\country", "nodeName": "country" }
Getting Started
This module is intended to be installed with composer. From the root of your Magento 2 project:
- Download the package
composer require graycore/new-relic-graph-ql
- Enable the package
./bin/magento module:enable Graycore_NewRelicGraphQl