bowtie-co / bowtie-co/reach-jquery-example
Setup Airbrake for your JavaScript application
- Dominant language
- JavaScript
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
### **Installation**
Add the library
```sh
npm install @airbrake/browser
```
### **Configuration**
```js
import { Notifier } from '@airbrake/browser';
const airbrake = new Notifier({
projectId: 386514,
projectKey: '8ced26a92117c8ac2efb12653324cbeb',
environment: 'production'
});
```
To test that Airbrake has been installed correctly in your project, start up
your JS project locally. Then visit it in your browser (eg:
`http://localhost:1080`), open the JS console, and paste in the following to
trigger a test error:
```js
window.onerror("TestError: This is a test", "path/to/file.js", 123);
```
This should send a test error to your Airbrake project.
### **Full documentation**
#
Visit our official GitHub repo for more info on alternative configurations and advanced options.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the issue's npm installation command and the JavaScript Notifier configuration for @airbrake/browser. Run the example application locally, open it at the stated localhost URL, and use the provided window.onerror call; done means the test error reaches the configured Airbrake project.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- observability-sre
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100