Experimental client for logging errors (exceptions) and stacktraces to Opbeat from within your client-side (browser) JavaScript applications.
For Node.js applications, please see the opbeat-node client instead.
Check out /example
for an example of usage.
- Edit the credentials in
example.js
to match your Opbeat organization and app. - Open
index.html
- Click a button to trigger an exception and log it to Opbeat
NOTE: To be able to log clientside errors to Opbeat, your organization needs to have the feature flag enabled. Send Opbeat a message and they will enable it for you.
Please refer to the sourcecode or the raven-js documentation for now.
Basic documentation will be written once the library has been tested and is in a more stable state.
Feel free to help out with testing and developing this thing. Issues and Pull Requests are very welcome!
- Run
npm install gulp -g
to installgulp
- Run
npm install
to install dependencies - Change the credentials to match your Opbeat app in
example.js
- Run
gulp watch
to start the preview server onlocalhost:7000
This process watches and compiles dist versions of the client. It also livereloads the assets for the example application for a better development/testing workflow.
This client is based very heavily on the work that Matt Robenolt and others did on the raven-js client for Sentry (as noted in the LICENSE.md). This started out as a fork of Raven and is now incompatible with Sentry, therefore it has been renamed to avoid confusing anyone.
Created by Vanja Cosic (Frontend developer at Opbeat) as a hackday experiment, but is not officially supported by Opbeat... yet ;)