Skip to content

logqlio/logql-apollo-plugin

Repository files navigation

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 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],
})

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •