Apollo New Relic Extension
Creates a newrelic transaction with associated custom attributes on each graphql request/response. For use with Apollo Server's experimental extensions API only available with Apollo Server >= 2.x.
Usage
yarn add apollo-newrelic-extension
- Enable tracing in your
ApolloServer
configuration. - Connect an extension instance to the
ApolloServer
configuration.
Example
const express = const ApolloServer = const ApolloNewrelicExtension = const typeDefs = const resolvers = const server = typeDefs resolvers // ...additional configuration... // Thunk for creating the newrelic extension extensions: // Be sure to enable tracing tracing: true const app = server app