You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$log.error(exception, cause);//Relogs the error on the console
68
72
});
69
73
};
70
74
}]);
@@ -73,14 +77,14 @@ angular.module('your app').factory('$exceptionHandler', ['$window', function ($w
73
77
## Detailed Integration Guide
74
78
This library works with both node apps and browser apps seamlessly.
75
79
76
-
For node apps just installing the above dependencies and bootstrapping the code similar to the below is sufficient. See the instructions below for the browser.
77
-
78
80
### Create a client
79
81
In your script, the first thing before sending an event is to create a client. For npm apps, you may use require, but other options are also listed below.
80
82
81
83
```javascript
82
84
var TrakerrClient =require('trakerr-javascript'); //This is only necessary for NPM use.
83
-
var client =newTrakerrClient('<api-key>', '<app version here>', '<deployment stage here>'); // replace value within quotes with your values instead
85
+
var client =newTrakerrClient('<api-key>', //Your API key
86
+
'<app version here>', //Your app version
87
+
'<deployment stage here>'); //Custom deployment stage of your code.
84
88
```
85
89
86
90
### Option-1: Handle exceptions with a global handler
@@ -211,5 +215,5 @@ you can then use grunt to compile your own minified version of the code. The gru
211
215
```bash
212
216
grunt build
213
217
```
214
-
in the folder with gruntFile.js. If you wish to modify or fork our code, simply running `grunt build` in the folder after acquire the code.
218
+
in the folder with gruntFile.js. If you wish to modify or fork our code, simply run `grunt build` after modifying the code to try it out in your browser locally.
0 commit comments