@logql/apollo-plugin
v0.6.0
Published
Logql plugin for Apollo Server
Downloads
2,562
Maintainers
Readme
Logql plugin for apollo-server
Collect and send metrics, errors and schema changes to logql.io.
Installation
npm i @logql/apollo-plugin
OR
yarn add @logql/apollo-plugin
Usage
const Logql = require('@logql/apollo-plugin')
// ...
const apolloServer = new ApolloServer({
typeDefs,
resolvers,
plugins: [
Logql({
apiKey: 'logql:your-api-key,
}),
],
})
Or using environment variables:
LOGQL_API_KEY=logql:your-api-key node .