https://github.com/graycoreio/new-relic-graph-ql
Add additional features to Magento's native integration with New Relic for GraphQl.
https://github.com/graycoreio/new-relic-graph-ql
Last synced: 6 months ago
JSON representation
Add additional features to Magento's native integration with New Relic for GraphQl.
- Host: GitHub
- URL: https://github.com/graycoreio/new-relic-graph-ql
- Owner: graycoreio
- License: mit
- Archived: true
- Created: 2021-12-03T14:14:52.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-12-03T19:46:34.000Z (over 4 years ago)
- Last Synced: 2024-05-01T10:59:29.838Z (about 2 years ago)
- Language: PHP
- Size: 65.4 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# New Relic GraphQl
## Purpose
This module intends to create [custom event data](https://docs.newrelic.com/docs/data-apis/custom-data/custom-events/apm-report-custom-events-attributes/) 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](https://github.com/joma-webdevs/automatic-graphql-transaction-naming-for-new-relic) from [joma-webdevs](https://github.com/joma-webdevs) to extract query details, as a side effect it will add to the [APM transaction](https://docs.newrelic.com/docs/apm/transactions/intro-transactions/transactions-new-relic-apm/) more GraphQl request data
The event name is **GraphQlTransaction** and its data has the following structure:
```json
{
"operation": "Mutation|Query",
"transactionName": "/GraphQl/Controller/GraphQl\\Query\\country",
"nodeName": "country"
}
```
## Getting Started
This module is intended to be installed with [composer](https://getcomposer.org/). From the root of your Magento 2 project:
1. Download the package
```bash
composer require graycore/new-relic-graph-ql
```
2. Enable the package
```bash
./bin/magento module:enable Graycore_NewRelicGraphQl
```