getappmap/appmap-agent-js

Question: how to record Appmap with Nextjs

Opened this issue · 1 comments

hey! first of all, thank you for creating such an amazing tool. I was able to map our express apps without issues.
I'm facing some difficulties to start recording a Nextjs app. Nextjs apps have a /api/ route where the so called backend for frontend works..

the other routes are for the pages to render. Is there any special workaround to get the API interactions recorded?
I'm was not able to find any docs or references to this, but I saw some posts here in Issues mentioning recording with Nextjs

I'd really appreciate if someone can point me in the right direction.

I've tried to initialize the recording in the ways that work with my next apps, but no luck:

for example

➜ repo git:(master) ✗ npx appmap-agent-js --recorder=process -- npm run dev

➜ repo git:(master) ✗ npx appmap-agent-js --command="npm run dev" --recorder=process

when I attempt to record:
image

thanks!!

A

Hi, all new work on Node.js is occurring in a new repo - https://github.com/getappmap/appmap-node/

This repo supports requests recording and remote recording, can you try there?