Troubleshoot the Node.js Library
If you are not receiving traces and metrics in the Traces Explorer and Metrics Explorer, these are some options to troubleshoot.
Tracing disabled
The C++ addon requires glibc 2.27 and above, which means by default it will not compile on older distros such as Ubuntu 16.04 or RHEL/CentOS 7. If the C++ addon fails to compile, the library will issue the following message during installation and go into no-op mode:
Unsupported platform, application will not be instrumented
Your application will run normally, but no metrics or traces will be collected.
Nothing shows up in SolarWinds Observability SaaS
The most likely cause is that your Service key is not correct. There should be a message in the log saying
Server responded: Invalid API key
The Service key is used to identify your account and the service being instrumented. It is shown in the Add Data dialog when you add the new service.
It YourApiToken:YourServiceName
. Replace YourApiToken
with the SolarWinds Observability API token (ingestion type) generated for this service, and replace YourServiceName
with your chosen name for this service. See API Tokens.
The service name is also called the entity's service ID in SolarWinds Observability SaaS. The service name can also be seen in the Overview tab in the service entity's Entity Explorer details view. Editing the display name of the service entity in SolarWinds Observability SaaS does not affect the Service key.
Another common cause is connectivity problems between the library and the SolarWinds APM collector. If your server is behind a firewall, you may not be able to connect to the SolarWinds APM collector. See Firewall or access control requirements.
Where are the library logs?
The library log messages are sent to stderr
, which is usually written to the log file configured for the web server.
More verbose logs
Increase the library's log verbosity to see more diagnostic information. This can be done with the Logging level configuration option.
Do you have another APM library installed?
SolarWinds does not recommend running other APM libraries alongside the SolarWinds Observability Node.js Library. Disable other APM libraries from your application before using your application with the SolarWinds Observability Node.js Library.
If you previously used the appoptics-apm
library, remove it from your package.json
when migrating. See Migrate the Node.js Library from AppOptics to SolarWinds Observability SaaS.