kantord / kantord/bottoml.in-e

Setup Airbrake for your JavaScript application

Open
#2 0 comments 0 reactions 0 assignees View on GitHub
airbrake
Dominant language
JavaScript
Stars
1
Forks
0
PR merge metrics
No merged PRs in 30d

Description

### Install Airbrake in 2 easy steps:

**Step 1:** Add the library
Include via CDN:
```html

```
We also support installation via [npm](https://github.com/airbrake/airbrake-js#installation) and [Bower](https://github.com/airbrake/airbrake-js#installation).

**Step 2:** Copy this config snippet to your `app.js` file

(You can find your project ID and API KEY with your [project's settings](https://airbrake.io/projects/171845/edit)):

```js
var airbrake = new airbrakeJs.Client({
projectId: ,
projectKey: ''
});
airbrake.addFilter(function (notice) {
notice.context.environment = 'production';
return notice;
});
```

To test that Airbrake has been installed correctly in your JavaScript project, just open up the JavaScript console in your internet browser and paste in:

```js
airbrake.notify('hey there!')
```

Visit [official GitHub repo](https://github.com/airbrake/airbrake-js) for more info on alternative configurations and advanced options.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by checking the application’s app.js entry point and the linked airbrake-js installation documentation. Verify how the CDN, npm, or Bower setup fits this project, then use the browser console notification example to confirm that Airbrake reports successfully.

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
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.