If you have problems instrumenting your New Relic Node.js agent for page load timing (sometimes referred to as real user monitoring or RUM), follow the standard troubleshooting procedures. Here are some additional tips for Node.js.
Error codes will automatically appear in the site source code and in your Node.js agent logs. Search for
NREUM to find these codes.
|0||Browser monitoring has been explicitly disabled. This was done either in the newrelic.js or with an environment variable. (
|1||Page load timing was called outside of a web transaction. This may occur if you tried to generate the page load timing data once and then cached it, or if you called it in a background task.|
|2||Something unexpected occurred.|
|3||The transaction is unnamed. If you are not using Express or Restify and you did not explicitly name the transaction, this error appears. This is to avoid rolling the transaction name into /*. For more information, see naming your transactions.|
The Node.js agent has not yet done a "handshake" with the collector. The app was started and a user hit the site before the collector could talk to the agent. This may occur because:
If these errors persist longer than 1 minute, check your license key. Otherwise, the errors should disappear on their own.
|5||Browser monitoring has been disabled on the collector side. For example, the collector did not return enough data for page load timing to be enabled. This is a collector issue, because server-side configuration for Node.js currently is not available.|
For more help
Additional documentation resources include: