This is a quick getting started guide. For in-depth instructions on integrating Sentry with JavaScript, view our complete documentation.
Installation
The easiest way to load Raven.js is to load it directly from our CDN. This script tag should be included after other libraries are loaded, but before your main application code (e.g. app.js):
Issue by jimcky Monday Feb 06, 2017 at 10:02 GMT Originally opened as https://github.com/oursky/shotbot3/issues/158
This is a quick getting started guide. For in-depth instructions on integrating Sentry with JavaScript, view our complete documentation.
Installation
The easiest way to load Raven.js is to load it directly from our CDN. This script tag should be included after other libraries are loaded, but before your main application code (e.g. app.js):
<script src="https://cdn.ravenjs.com/3.10.0/raven.min.js"></script>
For installation using npm or other package managers, see Installation.
Configuring the Client
Next you need to configure Raven.js to use your Sentry DSN:
Raven.config('https://6bdaaf3b370d44d7b788a2bb77fea157@sentry.io/135933').install()
At this point, Raven is ready to capture any uncaught exception.Once you have Raven up and running, it is highly recommended to check out Configuration and Usage.