Skip to content
Closed
Show file tree
Hide file tree
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
11 changes: 11 additions & 0 deletions docs/config.rst
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,17 @@ Those configuration options are documented below:
includePaths: [/https?:\/\/getsentry\.com/, /https?:\/\/cdn\.getsentry\.com/]
}

.. describe:: collectWindowErrors

By default, Raven collects all uncaught errors that have been caught by the `onerror` handler.
You can disable this behaviour by setting this flag to `false`. This may be useful when you only want to manually handle errors by using the `captureMessage` and `captureException`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

by using the captureMessage and captureException.

Drop unnecessary the. Should just be "by using captureMessage and captureException".


.. code-block:: javascript

{
collectWindowErrors: false
}

.. describe:: sampleRate

A sampling rate to apply to events. A value of 0.0 will send no events,
Expand Down
3 changes: 2 additions & 1 deletion typescript/raven-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ var options: Raven.RavenOptions = {
/https?:\/\/google\.com/,
'https://www.google.com'
],
collectWindowErrors: false,
autoBreadcrumbs: {
xhr: false,
console: false,
Expand Down Expand Up @@ -78,4 +79,4 @@ Raven.showReportDialog({
eventId: 'abcdef123456'
});

Raven.setDSN('https://public@sentry.io/2');
Raven.setDSN('https://public@sentry.io/2');
3 changes: 3 additions & 0 deletions typescript/raven.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ declare module Raven {
/** An array of regex patterns to indicate which urls are a part of your app. */
includePaths?: (RegExp | string)[];

/** set to false to disable collecting window errors */
collectWindowErrors?: boolean;

/** Additional data to be tagged onto the error. */
tags?: {
[id: string]: string;
Expand Down