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/draft-v9-migration-guide.md
+12-9Lines changed: 12 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,19 +4,20 @@
4
4
5
5
## General
6
6
7
+
-**Returning `null` from `beforeSendSpan` span is deprecated.**
7
8
-**Passing `undefined` to `tracesSampleRate` / `tracesSampler` / `enableTracing` will be handled differently in v9**
8
9
9
-
In v8, a setup like the following:
10
+
In v8, a setup like the following:
10
11
11
-
```ts
12
-
Sentry.init({
13
-
tracesSampleRate: undefined,
14
-
});
15
-
```
12
+
```ts
13
+
Sentry.init({
14
+
tracesSampleRate: undefined,
15
+
});
16
+
```
16
17
17
-
Will result in tracing being _enabled_, although no spans will be generated.
18
-
In v9, we will streamline this behavior so that passing `undefined` will result in tracing being disabled, the same as not passing the option at all.
19
-
If you are relying on `undefined` being passed in and having tracing enabled because of this, you should update your config to set e.g. `tracesSampleRate: 0` instead, which will also enable tracing in v9.
18
+
Will result in tracing being _enabled_, although no spans will be generated.
19
+
In v9, we will streamline this behavior so that passing `undefined` will result in tracing being disabled, the same as not passing the option at all.
20
+
If you are relying on `undefined` being passed in and having tracing enabled because of this, you should update your config to set e.g. `tracesSampleRate: 0` instead, which will also enable tracing in v9.
20
21
21
22
## `@sentry/utils`
22
23
@@ -31,6 +32,7 @@ If you are relying on `undefined` being passed in and having tracing enabled bec
31
32
- Deprecated `extractRequestData`. Instead manually extract relevant data off request.
32
33
- Deprecated `arrayify`. No replacements.
33
34
- Deprecated `memoBuilder`. No replacements.
35
+
- Deprecated `getNumberOfUrlSegments`. No replacements.
34
36
- Deprecated `BAGGAGE_HEADER_NAME`. No replacements.
35
37
- Deprecated `makeFifoCache`. No replacements.
36
38
- Deprecated `flatten`. No replacements.
@@ -40,6 +42,7 @@ If you are relying on `undefined` being passed in and having tracing enabled bec
40
42
- Deprecated `transactionNamingScheme` option in `requestDataIntegration`.
41
43
- Deprecated `debugIntegration`. To log outgoing events, use [Hook Options](https://docs.sentry.io/platforms/javascript/configuration/options/#hooks) (`beforeSend`, `beforeSendTransaction`, ...).
42
44
- Deprecated `sessionTimingIntegration`. To capture session durations alongside events, use [Context](https://docs.sentry.io/platforms/javascript/enriching-events/context/) (`Sentry.setContext()`).
45
+
- Deprecated `addTracingHeadersToFetchRequest` method - this was only meant for internal use and is not needed anymore.
0 commit comments