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.
You'll want to throw an exception in one of your tRPC 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.