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
@@ -29,12 +29,42 @@ And now ``renderer process``, which uses Browser SDK:
29
29
30
30
.. code-block:: javascript
31
31
32
-
var Raven =require('raven-js');
32
+
var Raven =require('raven-js');
33
33
Raven.config('___PUBLIC_DSN___').install();
34
34
35
35
window.addEventListener('unhandledrejection', function (event) {
36
36
Raven.captureException(event.reason);
37
37
});
38
38
39
-
This configuration will also handle promises errors, which be handled in various way, however, by default Electron uses standard JS API.
39
+
This configuration will also take care of unhandled Promise rejections, which can be handled in various way, however, by default Electron uses standard JS API.
40
40
To learn more about handling promises, refer to :doc:`Promises <../usage#promises>` documentation.
41
+
42
+
Sending environment information
43
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
44
+
45
+
It's often a good idea to send platform information alongside with caught error.
46
+
Some things that we can easily add, but are not limited to are:
47
+
48
+
- Environment type (browser/renderer)
49
+
- Electron version
50
+
- Chrome version
51
+
- Operation System type
52
+
- Operation System release
53
+
54
+
You can configure both processes in the same way. To do his, require standard Node.js module `os` and add `tags` attribute to your `config` call:
0 commit comments