@lightspeed/apollo-new-relic-extension
Introduction
New Relic logging extension for GraphQL services. This extension will log all GraphQL transactions as New Relic transactions, providing insight into the operation query and variables, an easily digestable time tracing summary, and a total error count.
Quick Start
- Install the dependency in your webapp.
yarn add newrelic @lightspeed/apollo-new-relic-extension
- Enable the extension and tracing in your Apollo server configuration.
import ApolloNewRelicExtension from '@lightspeed/apollo-new-relic-extension';
const server = new ApolloServer({
extensions: [() => new ApolloNewRelicExtension()],
tracing: true,
});