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: docs/migration/v8-to-v9.md
+15-1
Original file line number
Diff line number
Diff line change
@@ -78,6 +78,8 @@ Sentry.init({
78
78
79
79
In v9, an `undefined` value will be treated the same as if the value is not defined at all. You'll need to set `tracesSampleRate: 0` if you want to enable tracing without performance.
80
80
81
+
- The `getCurrentHub().getIntegration(IntegrationClass)` method will always return `null` in v9. This has already stopped working mostly in v8, because we stopped exposing integration classes. In v9, the fallback behavior has been removed. Note that this does not change the type signature and is thus not technically breaking, but still worth pointing out.
82
+
81
83
### `@sentry/node`
82
84
83
85
- When `skipOpenTelemetrySetup: true` is configured, `httpIntegration({ spans: false })` will be configured by default. This means that you no longer have to specify this yourself in this scenario. With this change, no spans are emitted once `skipOpenTelemetrySetup: true` is configured, without any further configuration being needed.
@@ -141,8 +143,16 @@ Sentry.init({
141
143
- The `flatten` export has been removed. There is no replacement.
142
144
- The `urlEncode` method has been removed. There is no replacement.
143
145
- The `getDomElement` method has been removed. There is no replacement.
144
-
- The `Request` type has been removed. Use `RequestEventData` type instead.
145
146
- The `memoBuilder` method has been removed. There is no replacement.
147
+
- The `extractRequestData` method has been removed. Manually extract relevant data off request instead.
148
+
- The `addRequestDataToEvent` method has been removed. Use `addNormalizedRequestDataToEvent` instead.
149
+
- The `extractPathForTransaction` method has been removed. There is no replacement.
150
+
151
+
#### Other/Internal Changes
152
+
153
+
The following changes are unlikely to affect users of the SDK. They are listed here only for completion sake, and to alert users that may be relying on internal behavior.
154
+
155
+
-`client._prepareEvent()` now requires a currentScope & isolationScope to be passed as last arugments
146
156
147
157
### `@sentry/browser`
148
158
@@ -207,6 +217,10 @@ This led to some duplication, where we had to keep an interface in `@sentry/type
207
217
Since v9, the types have been merged into `@sentry/core`, which removed some of this duplication. This means that certain things that used to be a separate interface, will not expect an actual instance of the class/concrete implementation. This should not affect most users, unless you relied on passing things with a similar shape to internal methods. The following types are affected:
208
218
209
219
-`Scope` now always expects the `Scope` class
220
+
- The `TransactionNamingScheme` type has been removed. There is no replacement.
221
+
- The `Request` type has been removed. Use `RequestEventData` type instead.
222
+
- The `IntegrationClass` type is no longer exported - it was not used anymore. Instead, use `Integration` or `IntegrationFn`.
223
+
- The `samplingContext.request` attribute in the `tracesSampler` has been removed. Use `samplingContext.normalizedRequest` instead. Note that the type of `normalizedRequest` differs from `request`.
0 commit comments