Skip to content

An experimental JS client for logging exceptions and stacktraces to Opbeat

License

Notifications You must be signed in to change notification settings

RasmusKlett/opbeat-js

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Opbeat.js

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.

Usage

Check out /example for an example of usage.

  1. Edit the credentials in example.js to match your Opbeat organization and app.
  2. Open index.html
  3. 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.

Documentation

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.

Contributing

Feel free to help out with testing and developing this thing. Issues and Pull Requests are very welcome!

Development usage

  1. Run npm install gulp -g to install gulp
  2. Run npm install to install dependencies
  3. Change the credentials to match your Opbeat app in example.js
  4. Run gulp watch to start the preview server on localhost: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.

License & origin

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 ;)

About

An experimental JS client for logging exceptions and stacktraces to Opbeat

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 98.5%
  • HTML 1.5%