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
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -68,6 +68,8 @@ Sentry.init({
68
68
});
69
69
```
70
70
71
+
- Dropping spans in the `beforeSendSpan` hook is no longer possible.
72
+
- The `beforeSendSpan` hook now receives the root span as well as the child spans.
71
73
- In previous versions, we determined if tracing is enabled (for Tracing Without Performance) by checking if either `tracesSampleRate` or `traceSampler` are _defined_ at all, in `Sentry.init()`. This means that e.g. the following config would lead to tracing without performance (=tracing being enabled, even if no spans would be started):
72
74
73
75
```js
@@ -243,6 +245,10 @@ The following outlines deprecations that were introduced in version 8 of the SDK
243
245
## General
244
246
245
247
-**Returning `null` from `beforeSendSpan` span is deprecated.**
248
+
249
+
Returning `null` from `beforeSendSpan` will now result in a warning being logged.
250
+
In v9, dropping spans is not possible anymore within this hook.
251
+
246
252
-**Passing `undefined` to `tracesSampleRate` / `tracesSampler` / `enableTracing` will be handled differently in v9**
Copy file name to clipboardExpand all lines: packages/core/src/utils/spanUtils.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -286,7 +286,7 @@ export function showSpanDropWarning(): void {
286
286
consoleSandbox(()=>{
287
287
// eslint-disable-next-line no-console
288
288
console.warn(
289
-
'[Sentry] Deprecation warning: Returning null from `beforeSendSpan` will be disallowed from SDK version 9.0.0 onwards. The callback will only support mutating spans. To drop certain spans, configure the respective integrations directly.',
289
+
'[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly.',
0 commit comments