The Node.js Probe Agent seeks its name in the following priority order, which corresponds to the configurable agent naming methods. If the agent does not find its name in one step, it automatically goes to the next step.
1. The CA_APM_PROBENAME environment variable
2. The probNameEnvKey environment key that is specified in the config.json file property.
3. The Node.js Probe Agent name is set using a require statement in the Node.js application startup script.
4. Configure the probeName property in the config.json file.
For the second probeNameEnvKey, create an environment variable with the value specified for probeNameEnvKey,
It is necessary to set an arbitrary probe name in the environment variable.
export NODE_APP_ID = (probe-name)