We are getting traces and correlation on some applications but not all applications for node.js agent.
On some applications an upgraded version of the apollo-server client where the non-working applications exist.
Release : SAAS
Component : Integration with APM
We could observe ESM Loader (src\main.js) was used to load the application (src\server.js).
Unfortunately, the current probe agent does not support for ESM. Hence it was failing to load probes for GraphQL, Apollo Server etc.
We have released new version ([email protected]).
The following command should work:
exec ca-apm-run-esm src\server.js
If we are directly executing JS (opt/app-root/src/.npm-global/lib/node_modules/ca-apm-probe/bin/ca-apm-run-esm.js) file instead of executable file, we should start the command with node as below:
exec node /opt/app-root/src/.npm-global/lib/node_modules/ca-apm-probe/bin/ca-apm-run-esm.js src\server.js
This ESM solution is now part of GA release ([email protected]) as well.