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
+15-1Lines changed: 15 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,20 @@
4
4
5
5
## General
6
6
7
-
- Returning `null` from `beforeSendSpan` span is deprecated.
7
+
-**Returning `null` from `beforeSendSpan` span is deprecated.**
8
+
-**Passing `undefined` to `tracesSampleRate` / `tracesSampler` / `enableTracing` will be handled differently in v9**
9
+
10
+
In v8, a setup like the following:
11
+
12
+
```ts
13
+
Sentry.init({
14
+
tracesSampleRate: undefined,
15
+
});
16
+
```
17
+
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.
8
21
9
22
## `@sentry/utils`
10
23
@@ -19,6 +32,7 @@
19
32
- Deprecated `extractRequestData`. Instead manually extract relevant data off request.
20
33
- Deprecated `arrayify`. No replacements.
21
34
- Deprecated `memoBuilder`. No replacements.
35
+
- Deprecated `getNumberOfUrlSegments`. No replacements.
22
36
- Deprecated `BAGGAGE_HEADER_NAME`. No replacements.
0 commit comments