NewRelic
GraphQL Mesh v0 documentation (superseded by v1): Learn how to integrate NewRelic for tracing, monitoring, and error reporting in your GraphQL application using @graphql-mesh/plugin-newrelic. Improve performance, track resolvers, and debug issues with distributed tracing.
If you wish to integrate NewRelic for tracing, monitoring and error reporting, you can use
@graphql-mesh/plugin-newrelic.
You can instrument your GraphQL application with New Relic reporting in order to take advantage of Distributed tracing to monitor performance and errors whilst ultimately getting to the root cause of issues.

Getting Started
Enabling required NewRelic feature flags
Some additional configuration is needed to allow Mesh send the collected information correctly to NewRelic.
You can add the following to your .env file;
or you can add the following to your NewRelic configuration file newrelic.ts;
Example Configuration
See here for more advanced options
Config API Reference
includeOperationDocument(type:Boolean) - defaultfalse. When set totrue, includes the GraphQL document defining the operations and fragmentsincludeExecuteVariables(type:Boolean) - defaultfalse. When set totrue, includes all the operation variables with their valuesincludeRawResult(type:Boolean) - default:false. When set totrue, includes the execution result of both delegation and executiontrackResolvers(type:Boolean) - defaultfalse. When set totrue, track resolvers as segments to monitor their performanceincludeResolverArgs(type:Boolean) - defaultfalse. When set totrue, includes all the arguments passed to resolvers and delegation with their valuesrootFieldsNaming(type:Boolean) - defaultfalse. When set totrueappend the names of operation root fields to the transaction nameextractOperationName(type:String) - Allows to set a custom operation name to be used as transaction name and attributeextractOperationName: {context.headers['x-operation-name']}