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: dev-packages/browser-integration-tests/suites/public-api/startSpan/parallel-root-spans-with-parentSpanId/subject.js
Copy file name to clipboardExpand all lines: dev-packages/node-integration-tests/suites/public-api/startSpan/parallel-spans-in-scope-with-parentSpanId/scenario.ts
Copy file name to clipboardExpand all lines: docs/migration/v8-to-v9.md
+13
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
@@ -90,6 +92,12 @@ In v9, an `undefined` value will be treated the same as if the value is not defi
90
92
91
93
- The `captureUserFeedback` method has been removed. Use `captureFeedback` instead and update the `comments` field to `message`.
92
94
95
+
### `@sentry/nextjs`
96
+
97
+
- The Sentry Next.js SDK will no longer use the Next.js Build ID as fallback identifier for releases. The SDK will continue to attempt to read CI-provider-specific environment variables and the current git SHA to automatically determine a release name. If you examine that you no longer see releases created in Sentry, it is recommended to manually provide a release name to `withSentryConfig` via the `release.name` option.
98
+
99
+
This behavior was changed because the Next.js Build ID is non-deterministic and the release name is injected into client bundles, causing build artifacts to be non-deterministic. This caused issues for some users. Additionally, because it is uncertain whether it will be possible to rely on a Build ID when Turbopack becomes stable, we decided to pull the plug now instead of introducing confusing behavior in the future.
100
+
93
101
### Uncategorized (TODO)
94
102
95
103
TODO
@@ -226,6 +234,7 @@ Since v9, the types have been merged into `@sentry/core`, which removed some of
226
234
- The `IntegrationClass` type is no longer exported - it was not used anymore. Instead, use `Integration` or `IntegrationFn`.
227
235
- The `samplingContext.request` attribute in the `tracesSampler` has been removed. Use `samplingContext.normalizedRequest` instead. Note that the type of `normalizedRequest` differs from `request`.
228
236
-`Client` now always expects the `BaseClient` class - there is no more abstract `Client` that can be implemented! Any `Client` class has to extend from `BaseClient`.
237
+
-`ReportDialogOptions` now extends `Record<string, unknown>` instead of `Record<string, any>` - this should not affect most users.
229
238
230
239
# No Version Support Timeline
231
240
@@ -243,6 +252,10 @@ The following outlines deprecations that were introduced in version 8 of the SDK
243
252
## General
244
253
245
254
-**Returning `null` from `beforeSendSpan` span is deprecated.**
255
+
256
+
Returning `null` from `beforeSendSpan` will now result in a warning being logged.
257
+
In v9, dropping spans is not possible anymore within this hook.
258
+
246
259
-**Passing `undefined` to `tracesSampleRate` / `tracesSampler` / `enableTracing` will be handled differently in v9**
0 commit comments