The official Opbeat agent
This is the official Node.js agent for Opbeat.
Opbeat provides instant performance insights, built for Node.js developers.
If you are looking for a module for your frontend JS applications, please see Opbeat for JS on GitHub.
Troubleshooting: If you encounter any problems setting up the Opbeat agent, please see our troubleshooting guide.
Install the module:
npm install opbeat --save
To get started just require and start the Opbeat agent at the very top of your app's main file. The Opbeat agent will be returned. The agent will now instrument your Node.js application and track unhandled exceptions automatically.
// Add this snippet to the VERY top of your main filevar opbeat = require'opbeat'startappId: '...'organizationId: '...'secretToken: '...'
If you want to manually send an error to Opbeat, use the
opbeatcaptureError'Ups, something broke'
Made with ♥️ and ☕️ by Opbeat and our community.