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
Copy file name to clipboardExpand all lines: src/platform-includes/capture-error/node.mdx
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
You can pass an `Error` object to `captureException()` to get it captured as event. It's also possible to pass non-Error objects and strings, but be aware that the resulting events in Sentry may be missing a stacktrace.
1
+
You can pass an `Error` object to `captureException()` to have it captured as event. It's also possible to pass non-`Error` objects and strings, but be aware that the resulting events in Sentry may be missing a stack trace.
Copy file name to clipboardExpand all lines: src/platform-includes/configuration/breadcrumb-hints/_default.mdx
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
`event`
2
2
3
-
: For breadcrumbs created from browser events, the Sentry SDK often supplies the event to the breadcrumb as a hint. This, for instance, can be used to extract data from the target DOM element into a breadcrumb.
3
+
: For breadcrumbs created from browser events, the Sentry SDK often supplies the event to the breadcrumb as a hint. Thiscan be used to extract data from the target DOM element into a breadcrumb, for example.
4
4
5
5
`level` / `input`
6
6
@@ -16,4 +16,4 @@
16
16
17
17
`xhr`
18
18
19
-
: For breadcrumbs created from HTTP requests done via the legacy `XMLHttpRequest` API. This holds the original xhr object.
19
+
: For breadcrumbs created from HTTP requests made using the legacy `XMLHttpRequest` API. This holds the original `xhr` object.
Copy file name to clipboardExpand all lines: src/platform-includes/configuration/integrations/default-integrations/javascript.mdx
+10-10Lines changed: 10 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
System integrations are enabled by default to integrate into the standard library or the interpreter itself. They are documented so you can be both aware of what they do and disable them if they cause issues.
1
+
System integrations are enabled by default to integrate into the standard library or the interpreter itself. They're documented so you can understand what they do and disable them if they cause issues.
2
2
3
3
## Enabled by Default
4
4
@@ -11,15 +11,15 @@ message, or URLs in a given exception.
11
11
12
12
It ignores errors that start with `Script error` or `Javascript error: Script error` by default.
13
13
14
-
To configure this integration, use `ignoreErrors`, `denyUrls`,
14
+
To configure this integration, use the `ignoreErrors`, `denyUrls`,
15
15
and `allowUrls` SDK options directly. Keep in mind that `denyURLs` and `allowURLs`
16
-
work only for captured exceptions, not raw message events.
16
+
only work for captured exceptions, not raw message events.
This integration allows the SDK to provide original functions and method names, even when our error or breadcrumbs handlers wrap them.
22
+
This integration allows the SDK to provide original functions and method names, even when those functions or methods are wrapped by our error or breadcrumb handlers.
23
23
24
24
### TryCatch
25
25
@@ -81,7 +81,7 @@ Available options:
81
81
82
82
_Import name: `Sentry.Integrations.LinkedErrors`_
83
83
84
-
This integration allows you to configure linked errors. They’ll be recursively read up to a specified limit and lookup will be performed by a specific key. By default, the Sentry SDK sets the limit to five and the key used is `cause`.
84
+
This integration allows you to configure linked errors. They’ll be recursively read up to a specified limit, and lookup will be performed by a specific key. By default, the Sentry SDK sets the limit to five and the key used is `cause`.
Before version 7.0.0 of the Sentry SDK, this integration was called `UserAgent`.
121
-
It was renamed because the integration handles more than just user-agent data.
121
+
It was renamed because the integration handles more than user-agent data.
122
122
123
123
_Import name: `Sentry.Integrations.UserAgent`_
124
124
125
125
</Note>
126
126
127
-
This integration attaches HTTP request information, such as URL, user-agent, referrer and other headers to the event.
127
+
This integration attaches HTTP request information, such as URL, user-agent, referrer, and other headers to the event.
128
128
It allows us to correctly catalog and tag events with specific OS, browser, and version information.
129
129
130
130
### Dedupe
131
131
132
132
_Import name: `Sentry.Integrations.Dedupe`_
133
133
134
-
This integration deduplicates certain events. It can be helpful if you are receiving many duplicate errors. Note that Sentry will only compare stack traces and fingerprints. This integration is enabled by default for Browser.
134
+
This integration deduplicates certain events. It can be helpful if you're receiving many duplicate errors. Note that Sentry only compares stack traces and fingerprints. This integration is enabled by default for Browser.
To disable system integrations set `defaultIntegrations: false` when calling `init()`.
140
+
To disable system integrations, set `defaultIntegrations: false` when calling `init()`.
141
141
142
-
To override their settings, provide a new instance with your config to `integrations` option. For example, to turn off browser capturing console calls:
142
+
To override their settings, provide a new instance with your config to the `integrations` option. For example, to turn off browser capturing console calls:
Copy file name to clipboardExpand all lines: src/platform-includes/configuration/integrations/default-integrations/node.mdx
+10-10Lines changed: 10 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -1,15 +1,15 @@
1
-
System integrations are enabled by default to integrate into the standard library or the interpreter itself. They are documented so you can be both aware of what they do and disable them if they cause issues.
1
+
System integrations are enabled by default to integrate into the standard library or the interpreter itself. They're documented so you can understand what they do and disable them if they cause issues.
This integration attaches a global uncaught exception handler. It can be modified to provide a custom shutdown function.
49
49
The `onFatalError` option is meant to perform a cleanup before the process exits, not fully prevent it from exiting.
50
50
51
-
<Alertlevel="warning"title="Note">
51
+
<Alertlevel="warning">
52
52
53
53
Be aware that if you overwrite this setting, you will lose the default implementation, which handles draining queued events before exiting. If you want to examine how it works in order to be able to recreate it in your code, see the implementation of the [`logAndExitProcess`](https://github.com/getsentry/sentry-javascript/blob/master/packages/node/src/integrations/utils/errorhandling.ts) function.
This integration attaches a global unhandled rejection handler. By default, all unhandled rejections trigger a warning and log the error. You can change this behavior using the `mode` option, which is in line with Node's CLI options: https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode.
69
+
This integration attaches a global unhandled rejection handler. By default, all unhandled rejections trigger a warning and log the error. You can change this behavior using the `mode` option, which is works with Node's CLI options: https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode.
This integration adds source file context to stack frames for captured exceptions
85
+
This integration adds source file context to stack frames for captured exceptions.
86
86
87
87
Available options:
88
88
@@ -97,7 +97,7 @@ Available options:
97
97
98
98
_Import name: `Sentry.Integrations.LinkedErrors`_
99
99
100
-
This integration allows you to configure linked errors. They'll be recursively read up to a specified limit and lookup will be performed by a specific key. By default, the limit is set to 5 and the key used is `"cause"`.
100
+
This integration allows you to configure linked errors. They'll be recursively read up to a specified limit, and lookup will be performed by a specific key. By default, the limit is set to 5 and the key used is `"cause"`.
101
101
102
102
Available options:
103
103
@@ -118,7 +118,7 @@ This integration fetches names of all currently installed Node modules and attac
118
118
119
119
## Modifying System Integrations
120
120
121
-
To disable system integrations set `defaultIntegrations: false` when calling `init()`.
121
+
To disable system integrations, set `defaultIntegrations: false` when calling `init()`.
122
122
123
123
To override an integration's settings, provide a new instance to the `integrations` option when calling `init()`. For example, to change the fatal error handler:
Copy file name to clipboardExpand all lines: src/platform-includes/configuration/integrations/pluggable-integrations/javascript.mdx
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
-
These pluggable integrations are snippets of code that augment functionality for specific applications and/or frameworks. We document them so you can see what they do and that they can be enabled.
1
+
These pluggable integrations are snippets of code that augment functionality for specific applications and/or frameworks. We document them so you can understand what they do and enable them, if needed.
2
2
3
3
## How to Enable
4
4
5
-
Install the `@sentry/integrations` package and provide a new instance with your config to `integrations` option. Include the plugin after the SDK has been loaded.
5
+
Install the `@sentry/integrations` package and provide a new instance with your config to the `integrations` option. Include the plugin after the SDK has been loaded.
This integration extracts all non-native attributes from the Error object and attaches them to the event as the `extra` data. If the error object has a `.toJSON()` method, the `ExtraErrorData` integration will run it to extract additional information.
15
+
This integration extracts all non-native attributes from the error object and attaches them to the event as the `extra` data. If the error object has a `.toJSON()` method, the `ExtraErrorData` integration will run it to extract additional information.
This integration captures all `Console API` calls and redirects them to Sentry using the SDK's `captureMessage` or `captureException` call depending on the log level. It then retriggers to preserve default native behavior.
25
+
This integration captures all `Console API` calls and redirects them to Sentry using the SDK's `captureMessage` or `captureException` call, depending on the log level. It then re-triggers to preserve default native behavior:
This integration allows you to inspect the content of the processed event, that will be passed to `beforeSend` and effectively send to the Sentry SDK. It will *always* run as the last integration, no matter when it was registered.
33
+
This integration allows you to inspect the content of the processed event that will be passed to `beforeSend`, and effectively send it to the Sentry SDK. It will *always* run as the last integration, no matter when it was registered.
34
34
35
35
Available options:
36
36
@@ -42,9 +42,9 @@ Available options:
42
42
43
43
_Import name: `Sentry.Integrations.Offline`_
44
44
45
-
This integration uses the web browser's [online and offline events](https://developer.mozilla.org/en-US/docs/Web/API/NavigatorOnLine/Online_and_offline_events) to detect when no network connectivity is available. If offline, it saves events to the web browser's client-side storage (typically IndexedDB) then automatically uploads events when network connectivity is restored.
45
+
This integration uses the web browser's [online and offline events](https://developer.mozilla.org/en-US/docs/Web/API/NavigatorOnLine/Online_and_offline_events) to detect when no network connectivity is available. If offline, it saves events to the web browser's client-side storage (typically IndexedDB), then automatically uploads events when network connectivity is restored.
46
46
47
-
This plugin does not attempt to provide local storage or retries for other scenarios. For example, if the browser has a local area connection but no internet connection, then it may report that it's online, and Sentry's `Offline` plugin will not attempt to save or retry any send failures in this case.
47
+
This plugin does not attempt to provide local storage or retries for other scenarios. For example, if the browser has a local area connection but no internet connection, then it may report that it's online, and Sentry's `Offline` plugin will not attempt to save or retry any send failures in this case:
This integration allows you to apply a transformation to each frame of the stack trace. In the streamlined scenario, it can be used to change the name of the file frame it originates from, or it can be fed with an iterated function to apply any arbitrary transformation.
58
58
59
-
On Windows machines, you have to use Unix paths and skip the volume letter in `root` option to enable. For example `C:\\Program Files\\Apache\\www` won’t work, however, `/Program Files/Apache/www` will.
59
+
On Windows machines, you have to use Unix paths and skip the volume letter in the `root` option to enable it. For example,`C:\\Program Files\\Apache\\www` won’t work, however, `/Program Files/Apache/www` will.
Copy file name to clipboardExpand all lines: src/platform-includes/configuration/integrations/pluggable-integrations/node.mdx
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
Pluggable integrations are integrations that can be additionally enabled, to provide specific features. They're documented so you can see what they do and that they can be enabled. To enable pluggable integrations, provide a new instance with your config to the `integrations` option. For example: `integrations: [new Sentry.Integrations.Modules()]`.
1
+
Pluggable integrations are integrations that can be additionally enabled to provide specific features. They're documented so you can understand what they do and enable them, if needed. To enable pluggable integrations, provide a new instance with your config to the `integrations` option. For example: `integrations: [new Sentry.Integrations.Modules()]`.
2
2
3
3
## Core
4
4
@@ -7,7 +7,7 @@ Pluggable integrations are integrations that can be additionally enabled, to pro
This integration captures all `Console API` calls and redirects them to Sentry using `captureMessage` call.
10
-
It then retriggers to preserve default native behavior.
10
+
It then re-triggers to preserve default native behavior.
11
11
12
12
Available options:
13
13
@@ -21,7 +21,7 @@ Available options:
21
21
22
22
_Import name: `Sentry.Integrations.Dedupe`_
23
23
24
-
This integration deduplicates certain events. It can be helpful if you are receiving many duplicate errors. Be aware that we will only compare stack traces and fingerprints.
24
+
This integration deduplicates certain events. It can be helpful if you're receiving many duplicate errors. Be aware that we will only compare stack traces and fingerprints.
This integration allows you to apply a transformation to each frame of the stack trace. In the streamlined scenario, it can be used to change the name of the file frame it originates from, or it can be fed with an iterated function to apply any arbitrary transformation.
64
64
65
-
On Windows machines, you have to use Unix paths and skip the volume letter in `root` option in order to make it work.
66
-
For example `C:\\Program Files\\Apache\\www` won't work, however, `/Program Files/Apache/www` will.
65
+
On Windows machines, you have to use Unix paths and skip the volume letter in the `root` option to make it work.
66
+
For example,`C:\\Program Files\\Apache\\www` won't work, however, `/Program Files/Apache/www` will.
0 commit comments