This backend SDK requires one of the Highlight frontend SDKs to be installed, so please make sure you've followed the fullstack mapping guide first.
Install @highlight-run/node with your package manager.
Initialize the Highlight JS SDK with your project ID.
Use the Node Highlight SDK in your response handler.
If you are using express.js async handlers, you will need your own try/catch block that directly calls the highlight SDK to report an error. This is because express.js async handlers do not invoke error middleware.
You'll want to throw an exception in one of your express.js handlers. Access the API handler and make sure the error shows up in Highlight.
With the JS SDKs, your logs are reported automatically from console methods. See the JS logging setup guide for more details.