Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions docs/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,12 @@ For example, the `RSVP.js library
Raven.captureException(evt.reason);
};

Node's native promises are reported through a ``unhandledRejection`` event:

.. code-block:: javascript

process.on('unhandledRejection', reason => Raven.captureException(reason));

Please consult your promise library documentation on how to hook into its global unhandled rejection handler, if it exposes one.

Custom Grouping Behavior
Expand Down