One command setup

That’s it. The AI agent reads your code, writes the instrumentation, adds env vars, and installs packages. Get your API key at rocketgraph.app/settings.

What it does

  1. Reads package.json and your entry files
  2. Writes instrumentation.ts (or .js) in the project root
  3. Appends ROCKETGRAPH_API_KEY and OTEL_SERVICE_NAME to .env.local
  4. Installs only the OTel packages your project needs
  5. Configures traces, metrics, and logs → Rocketgraph
  6. Bridges console.log/warn/error to OTel logs

Supported

Frameworks: Express, Fastify, Next.js, NestJS, Koa, Hapi, Restify Libraries: PostgreSQL, MySQL, MongoDB, Redis, Prisma, TypeORM, Knex, GraphQL, gRPC, AWS SDK, Pino, Winston, Bunyan

After running

  • Next.js: Auto-loaded. Just restart your dev server.
  • Everything else: Import as the first line of your entry file:

Optional: add error handlers

Reads your app code and adds error-handling middleware. Separate step — init never modifies application code.

Offline mode (no AI)

Template-based setup. No API key required.

Commands

Manual setup