Skip to content

Commit 1a75c97

Browse files
committed
Move capture console section
1 parent 573cfbd commit 1a75c97

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

docs/migration/v8-to-v9.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -75,16 +75,6 @@ Older Typescript versions _may_ continue to be compatible, but no guarantees app
7575
- The `beforeSendSpan` hook now receives the root span as well as the child spans.
7676
We recommend checking your `beforeSendSpan` to account for this change.
7777

78-
- If you use the optional `captureConsoleIntegration` and set `attachStackTrace: true` in your `Sentry.init` call, console messages will no longer be marked as unhandled (i.e. `handled: false`) but as handled (i.e. `handled: true`).
79-
If you want to keep sending them as unhandled, configure the `handled` option when adding the integration:
80-
81-
```js
82-
Sentry.init({
83-
integrations: [Sentry.captureConsoleIntegration({ handled: false })],
84-
attachStackTrace: true,
85-
});
86-
```
87-
8878
- The `request` property on the `samplingContext` argument passed to the `tracesSampler` and `profilesSampler` options has been removed.
8979
`samplingContext.normalizedRequest` can be used instead.
9080
Note that the type of `normalizedRequest` differs from `request`.
@@ -103,6 +93,16 @@ Older Typescript versions _may_ continue to be compatible, but no guarantees app
10393
});
10494
```
10595

96+
- If you use the optional `captureConsoleIntegration` and set `attachStackTrace: true` in your `Sentry.init` call, console messages will no longer be marked as unhandled (i.e. `handled: false`) but as handled (i.e. `handled: true`).
97+
If you want to keep sending them as unhandled, configure the `handled` option when adding the integration:
98+
99+
```js
100+
Sentry.init({
101+
integrations: [Sentry.captureConsoleIntegration({ handled: false })],
102+
attachStackTrace: true,
103+
});
104+
```
105+
106106
### `@sentry/browser` / All SDKs running in the browser
107107

108108
- The SDK no longer instructs the Sentry backend to automatically infer IP addresses by default.

0 commit comments

Comments
 (0)