graycore / new-relic-graph-ql
此包已被废弃,不再维护。未建议替代包。
为 Magento 2 中的每个 graphQl 查询和突变创建自定义事件
dev-main
2021-12-03 19:46 UTC
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
目的
此模块旨在为 Magento 2 中发出的每个 graphQl 请求在 New Relic 中创建 自定义事件数据。它将为 graphQl 请求中的每个根节点创建一个事件。
详细信息
此模块依赖于来自 joma-webdevs 的 Magento 2 - Automatic GraphQL transaction naming for New Relic 以提取查询详细信息,作为副作用,它将向 APM 事务 添加更多 GraphQl 请求数据
事件名称是 GraphQlTransaction,其数据结构如下
{ "operation": "Mutation|Query", "transactionName": "/GraphQl/Controller/GraphQl\\Query\\country", "nodeName": "country" }
开始使用
此模块旨在通过 composer 安装。从您的 Magento 2 项目的根目录开始
- 下载包
composer require graycore/new-relic-graph-ql
- 启用包
./bin/magento module:enable Graycore_NewRelicGraphQl