getappmap / appmap-agent-js

This project is deprecated. Please use https://github.com/getappmap/appmap-node/ to record Node.js applications.
Other
27 stars 8 forks source link

Question: how to record Appmap with Nextjs #249

Open amouratoglou opened 9 months ago

amouratoglou commented 9 months ago

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

kgilpin commented 8 months ago

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?