Plugin
Get Started

Get Started with Apollo

This guide explains how to Add @logql/apollo-plugin to your project.

💡

We currently only support apollo-server but we're planning to support more frameworks and languages in the future. If you want us to priotize a platform in particular, feel free to reach out (opens in a new tab)!

Install the plugin

pnpm i @logql/apollo-plugin

Configure the plugin and add to apollo-server

const { ApolloServer } = require('@apollo/server')
const LogQL = require('@logql/apollo-plugin')
 
const app = new ApolloServer({
  plugins: [
    LogQL({ apiKey: "logql:YOUR_API_KEY", environment: 'staging' }),
  ]
})
 
💡

If you don't know your API key, go to https://app.logql.io/ (opens in a new tab), select your project and go to settings. If you don't have a project yet, you will need to create one.

Wait for first event

Go to https://app.logql.io/ (opens in a new tab) and wait for the first event to be received!