Keep the Node.js error tracking integration behind a small application boundary, and require a recovered agent attempt to remain distinguishable from a failed publishing job before changing its destination. For a media agent that researches, drafts, and checks a story, signal quality depends on preserving that distinction alongside loop latency and per-call cost; moving exception reports successfully is only part of the job.
Short answer: install a library such as Sentry through npm, initialize it with project-specific settings, configure the framework's error middleware, and attach request identity to failures in critical agent steps. Trigger a deliberate exception to check delivery. Before migration, use the same controlled failure to verify that the new integration preserves investigation context without creating extra pages.
What page fired?
That question should survive the backend change.…