Collect and send metrics, errors and schema changes to logql.io.
npm i @logql/apollo-plugin
OR
yarn add @logql/apollo-plugin
const logql = require('@logql/apollo-plugin')
// ...
const logqlPlugin = logql({ apiKey: 'logql:your-api-key' })
// or using environment variables for config:
const logqlPlugin = logql.fromEnv()
const apolloServer = new ApolloServer({
typeDefs,
resolvers,
plugins: [logqlPlugin],
})